An open API service indexing awesome lists of open source software.

https://github.com/mrirakib04/server-3

server-3 For web-practice-9
https://github.com/mrirakib04/server-3

cors express jsonwebtoken mongodb node

Last synced: 2 months ago
JSON representation

server-3 For web-practice-9

Awesome Lists containing this project

README

          

# Server-3

# For: web-practice-9 - HR3 Management

## Links:

- **Web:** [https://mrirakib-web-practice-9.netlify.app/](https://mrirakib-web-practice-9.netlify.app/)
- **Repo:** [https://github.com/mrirakib04/web-practice-9/](https://github.com/mrirakib04/web-practice-9/)

## Features

- **Users:**

- Fetch all users.
- Fetch a specific user by email.
- Add a new user.

- **HR Management:**

- Fetch all HRs.
- Fetch an HR by email.
- Add a new HR.
- Update an HR's payment status or limit.

- **Employee Management:**

- Fetch all unemployed employees.
- Add a new unemployed employee.
- Remove an unemployed employee by email.

- **Team Management:**

- Fetch all team members associated with an HR by email.
- Add an employee to a team.
- Remove an employee from a team by email.

- **Asset Management:**

- Fetch all assets owned by a user.
- Fetch asset details by ID.
- Add a new asset.
- Update asset quantity.
- Delete an asset by ID.

- **Requests Management:**

- Fetch all asset requests made by a user.
- Add a new asset request.
- Approve a pending asset request.
- Delete a pending asset request.

- **Pending Requests:**

- Fetch all pending requests associated with a user.
- Fetch pending requests for a specific HR.
- Add a new pending request.
- Delete a pending request by ID.

- **Payment Management:**
- Record a payment made to an HR.

## Technologies Used

- **Express.js**: Web framework for Node.js to handle HTTP requests.
- **MongoDB**: NoSQL database for managing user, employee, asset, and request data.
- **CORS**: Middleware to handle cross-origin requests.
- **dotenv**: For managing environment variables like MongoDB credentials and JWT secret.
- **JWT (JSON Web Token)**: For secure user authentication and authorization.
- **MongoDB Client**: For interacting with the MongoDB database.

## Conclusion

Thank you for checking out my repository. If you have any feedback or suggestions, feel free to reach out!

---

Developed by **Md Rakibul Islam Rakib**