Gamerstag-RBAC is a an API that provides Role-Based Access Control (RBAC) functionalities for managing users in a gaming platform.
The application is deployed on an AWS EC2 instance and can be accessed at http://3.110.37.45/.
For detailed information about the API endpoints and how to use them, refer to the Postman documentation at Postman Documentation.
- Role-Based Access Control (RBAC): Manage users with different roles, including SuperAdmin, Branch Manager, and Salesperson.
- User Creation: Create users with specified roles based on permissions.
- User Deletion: Allow SuperAdmin to delete Branch Managers and Salespersons, and Branch Managers to delete their related Salespersons.
- User Information: Retrieve information about logged-in users.
- Backend: Node.js, Express.js, Sequelize (ORM for MySQL)
- Database: MySQL and Amazon RDS for deployment
- Deployment: AWS EC2, PM2 for process management, NGINX for reverse proxy
Make sure to set the following environment variables in your .env
file:
MAIL_HOST=""
MAIL_USER=""
MAIL_PASS=""
HOST=""
DATABASE=""
USER_NAME=""
PASSWORD=""
JWT_SECRET=""
To run the project locally, follow these steps:
- Clone the repository:
git clone <repository-url>
- Install dependencies:
npm install
- Set up the environment variables in a
.env
file. - Run the application:
npm start
- Nil Mani