Basic Started Project for NodeJS includes Express, Typescript, MongoDB as a database
npm install
To start project run
npm start
To build project
npm run build
POST : http://localhost:8080/api/users/
Request Body
{
"email" : "swapnil@yopmail.com",
"firstName" :"Swapnil",
"lastName" : "Nakhate"
}
GET : http://localhost:8080/api/users/
GET : http://localhost:8080/api/users/{userId}
PUT : http://localhost:8080/api/users/
Request Body
{
"email" : "swapnil@gmail.com",
"firstName" :"Swapnil",
"lastName" : "Nakhate"
}
DELETE : http://localhost:8080/api/users/{userId}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.