Simple API built with node.js and express framework
Behind this there is a MongoDB database hosted on https://mlab.com/
- Get sources: https://github.com/1475963/test-node.git
- Install / update dependencies: "$> npm install"
- Set the environment variable "NODE_ENV" to "development"
- Run "$> npm start"
- Send http requests to this endpoint: http://localhost/user
- A postman collection is available under the folder /test, you can import it and play with it
- Available actions:
- Create a new user
- Show a single user, filtering by name or id (mongodb id)
- Show all users
- Update a user's data (name or age)
- Remove a user