A simple RESTful API for user management built with Node.js, Express, and MongoDB.
- Create: Register a new user.
- Read: Fetch all users or a specific user by ID.
- Update: Update user details.
- Delete: Remove a user.
- Node.js
- Express.js
- MongoDB & Mongoose
- Run
npm installto install dependencies. - Create a
.envfile and add yourMONGO_URI. - Run
npm startto start the server.
| Method | Endpoint |
|---|---|
POST |
/api/v1/users |
GET |
/api/v1/users |
GET |
/api/v1/users/:id |
PATCH |
/api/v1/users/:id |
DELETE |
/api/v1/users/:id |