npm start
this will run the Nodemon on development mode
Before Running this command Check the mongodb Server is Running or not
mongodb://localhost:27017/JWT
http://localhost:4000/api/user/register
Body :
{
"name": "xyz",
"email": "xyz",
"password": "xys"
}
http://localhost:4000/api/user/login
Body :
{
"email":"zys",
"password": "zys"
}
http://localhost:4000/api/posts/
header:
{
auth-token: "fefenjduececmscjsc"
}