This is a simple example of a RESTFUL CRUD API using Node.js, Express, and Mongoose.
https://crud-api-srm.azurewebsites.net/
- Create a new user with
POST /
- Get a list of all users with
GET /
orGET /:id
- Update a user with
PUT /:id
- Delete a user with
DELETE /:id
- Clone the repo
- Install dependencies with
npm install
- Create a
.env
file in the root directory and add the following:
PORT=3000
MONGO_URI=<mongo_uri>
- Start the server with
npm start
This project is licensed under the MIT License - see the LICENSE.md file for details