golang-neo4j-realworld-example

module
v0.0.0-...-bab95bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: Apache-2.0

README

RealWorld Example App

CI

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.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL