Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pintu544/user-management-api
This project provides a backend API for managing user data.
https://github.com/pintu544/user-management-api
expressjs mongodb nodejs
Last synced: 6 days ago
JSON representation
This project provides a backend API for managing user data.
- Host: GitHub
- URL: https://github.com/pintu544/user-management-api
- Owner: pintu544
- Created: 2024-04-07T06:01:32.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-07T07:06:44.000Z (9 months ago)
- Last Synced: 2024-04-13T23:09:58.919Z (8 months ago)
- Topics: expressjs, mongodb, nodejs
- Language: JavaScript
- Homepage: https://user-management-api-six.vercel.app
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User Management API
## Project Description
This project provides a backend API for managing user data. The API endpoints support the following operations:
* **Create a new user**
* **Fetch a random user**
* **Check if a user exists**
* **List users above a certain age**
* **List all user names**## Technologies
* Node.js
* Express.js
* MongoDB
* Mongoose## Setup
1. **Clone the Repository:**
```bash
git clone https://github.com/pintu544/User-Management-API2. **Install Dependencies:**
```bash
cd user-management-api
npm install
npm start3. **API Endpoints:**
Endpoint Method Description
/api/users POST Creates a new user
/api/users/random GET Returns data of a random user
/api/users/exists POST Checks if a user with the given name exists
/api/users/above-age?age=X GET Returns users whose age is greater than or equal to the value X
/api/users/names GET Returns an array of all user names