A blueprint for creating RESTful web servers with koa-neo4j
Assuming Node version >= 4 and NPM are installed:
git clone https://github.com/assister-ai/koa-neo4j-starter-kit.git
cd koa-neo4j-starter-kit
npm installTo run the server, you need a running Neo4j instance. Set your Neo4j config (boltUrl and password) in src/settings.js
For development:
npm startFor production, you need to set environment variables referred by src/settings.js (either in your shell or ideally in a docker-compose conf), then simply:
npm run serve- Put all your configuration objects in src/settings.js and configure your development environment
- Keep related logic be
.jsor.cypin the same directory (src/user,src/articlesandsrc/noncypherdirectories are examples). - Import the logic that you want to be included in the bundle at src/server.js