Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishn/mern-project-company-api
The back-end API for a MERN stack application using ExpressJS and MongoDB, providing secure endpoints for employee management, note handling, and role-based access control.
https://github.com/rishn/mern-project-company-api
api back-end express jwt-authentication mern mern-stack mongodb mongoose nodejs role-based-access-control
Last synced: 29 days ago
JSON representation
The back-end API for a MERN stack application using ExpressJS and MongoDB, providing secure endpoints for employee management, note handling, and role-based access control.
- Host: GitHub
- URL: https://github.com/rishn/mern-project-company-api
- Owner: rishn
- Created: 2024-08-15T11:25:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T17:45:49.000Z (6 months ago)
- Last Synced: 2024-11-13T04:35:31.836Z (3 months ago)
- Topics: api, back-end, express, jwt-authentication, mern, mern-stack, mongodb, mongoose, nodejs, role-based-access-control
- Language: JavaScript
- Homepage: https://businesscompany-api.onrender.com
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MERN Project - Business Company API (Back-end)
This repository contains the backend of a MERN stack application developed using ExpressJS and MongoDB. It provides the API endpoints and logic necessary for the employee management and notes system.
## Features
- **Authentication & Authorization:** Implements JWT-based authentication and role-based access control.
- **Employee Management:** APIs for managing employees (Admins and Managers can create, update, or delete users).
- **Notes Management:** APIs for creating, viewing, updating, and deleting notes based on the user’s role.
- **Role-Based Access:** Employees, Managers, and Admins have different capabilities (e.g., who can view/edit/delete notes or access user settings).
- **Secure API Endpoints:** Ensures that all endpoints are protected and accessible only to users with the right permissions.## Use Cases Addressed
1. Replace current sticky note system.
2. Employee login system.
3. Role-based access control (Employees, Managers, Admins).
4. Notes assigned to specific employees.
5. Notes management (OPEN/COMPLETED states, deletion restrictions).
6. Immediate employee access removal.
7. User management (only Managers/Admins can manage users).## Tech Stack
- **Express.js** for the backend framework.
- **MongoDB** for the database.
- **Mongoose** for MongoDB object modeling.
- **JWT** for authentication.
- **bcrypt** for password hashing.## Deployed API
The backend of the application is deployed and accessible at:
- [Backend Live URL](https://businesscompany-api.onrender.com)