- Node app created using express and mongodb
- User CRUD features
- Nodemon for development monitor script
For development, you will only need Node.js and a node global package, NPM, installed in your environment.
$ git clone https://github.com/vc-vishakha/node-crud-mongodb
$ cd node-crud-mongodb
$ npm install
- Start server with
npm start
command
- Health check - Method GET -
/health
- User
-
List - Method GET -
/user/list
-
Create - Method POST -
/user
Params: { "name": "Lorem ipsum", "email": "[email protected]", "phone": "+911297346465", "age": 22 }
-
Update - PATCH -
/user
Params: { "id: "ID", "name": "Lorem ipsum", "email": "[email protected]", "phone": "+911297346465", "age": 22 }
-
Delete - Method DELETE -
/user/:id
-