$ git clone https://github.com/niteshsinghrajput/Angular2NodeJsExample.git
$ cd ContactList/client
3. Run npm install in terminal in mac and *nix operating system or command prompt in windows to install dependencies
$ npm install
$ ng serve
http://localhost:4200/
$ cd ContactList
$ npm install
mongoose.connect('mongodb://<username>:<password>@<mongo db host>/<database name>');
$ Node app
http://localhost:3000/api/contacts
http://localhost:3000/api/contacts
{
"first_name":"Nitesh",
"last_name":"Rajput",
"phone":"9898989898"
}
7. To get a particular contact detail from mongo db database by using following url with GET request type in postman
http://localhost:3000/api/contacts/<id>
8. To delete a particular contact from mongo db database by using following url with DELETE request type in postman
http://localhost:3000/api/contacts/<id>