Discover Packages
github.com/neo4j-examples/golang-neo4j-realworld-example
module
Version:
v0.0.0-...-bab95bc
Opens a new window with list of versions in this module.
Published: Nov 21, 2022
License: Apache-2.0
Opens a new window with license information.
README
README
¶
Neo4j & Golang (using the Neo4j driver) codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
Prerequisites
Make sure to install a recent Golang version.
Build
As simple as:
go build ./cmd/conduit
Run
First, make sure to configure the application to target your specific Neo4j instance.
All settings are mandatory.
Environment variable
Description
NEO4J_URI
Connection URI of the instance (e.g. bolt://localhost
, neo4j+s://example.org
)
NEO4J_USERNAME
Username of the account to connect with (must have read & write permissions)
NEO4J_PASSWORD
Password of the account to connect with (must have read & write permissions)
Then, just execute:
./conduit
You can also skip the build command and directly execute:
go run ./cmd/conduit/
And exercise the application with Postman (see the collection file ) at localhost:3000
.
Expand ▾
Collapse ▴
Click to show internal directories.
Click to hide internal directories.