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 install
To run the server, you need a running Neo4j instance. Set your Neo4j config (boltUrl and password) in src/settings.js
For development:
npm start
For 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
.js
or.cyp
in the same directory (src/user
,src/articles
andsrc/noncypher
directories are examples). - Import the logic that you want to be included in the bundle at src/server.js