This is a demo CRUD service by using NodeJS and Neo4j.
This demo is about creating, updating, retrieveng and deleting companies object via web service. The web service itself will be exposed as a REST service, following its standard:
- POST: to create a company
- PUT: to update a company
- GET: to retrieve comapanies
- DELETE: to remove companies
Default path is
For this purpose, I will use
ExpressJS as a web application framework.
As a basic setup, I use express generator.
For authentication I use JWT mechanism, by using
And several supporting libraries such as
Here are the complete dependencies by far
npm install morgan body-parser cors neo4j-driver method-override config.json lodash swagger-node-express swagger-jsdoc swagger-ui-express passport passport-jwt jsonwebtoken --save npm install eslint --save-dev
How to linter code
./node_modules/.bin/eslint --ext *.js
npm install mocha chai chai-http --save-dev
Run your application
All the endpoint is documented through swagger, by accessing context path