A simple REST API using Node.JS, Express, and MongoDB. It can act as a boilerplate as well as a guide to the beginners.
- Install MongoDB or you can use any Database-as-a-Service provider
- Clone this repo
- In your terminal,
npm start
- Point your browser to
localhost:3000
Further you can use any REST Client like Postman or Advanced REST Client for interacting with the API. You would need to make changes in index.js
on line 11 and add your database connection string.
- (GET)
/contact
- (POST)
/contact
- (PUT)
/contact/:contactID
- (DELETE)
/contact/:contactID
- Use this as a boilerplate for your new project
- Report issues
- See ES6 in Action
- Spread the word :)