ethan-cao / app-go

https://graphacademy.neo4j.com/courses/app-go

Home Page:https://graphacademy.neo4j.com/courses/app-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building Neo4j Applications with Go

Learn how to interact with Neo4j from Go using the Neo4j Go Driver

For a complete walkthrough of this repository, enroll now.

Setup

  • Clone repository

  • Update config.json with the connection details

{
  "APP_PORT": 3000,
  "NEO4J_URI": "neo4j://localhost:7687",
  "NEO4J_USERNAME": "neo4j",
  "NEO4J_PASSWORD": "letmein",
  "JWT_SECRET": "secret",
  "SALT_ROUNDS": 10
}
  • Start the project

Neo4j 4.4

Database: data/go-app-db.dump

Reduced database: data/golang-app-movie.cypher (no need to add index/constraint)

go run ./cmd/neoflix

A Note on comments

You may spot a number of comments in this repository that look a little like this:

// tag::something[]
someCode()
// end::something[]

We use Asciidoc to author our courses. Using these tags means that we can use a macro to include portions of code directly into the course itself.

From the point of view of the course, you can go ahead and ignore them.

About

https://graphacademy.neo4j.com/courses/app-go

https://graphacademy.neo4j.com/courses/app-go


Languages

Language:Cypher 58.2%Language:Go 41.1%Language:HTML 0.7%