This project is a login endpoint designed to handle user authentication and authorization using token-based technology. It utilizes common design patterns like Singleton for efficient resource management. Admin users have access to a dashboard, while regular users are directed to register and login pages. Active users and tokens are securely managed for enhanced security.
- User Authentication: Secure user authentication and authorization using token-based technology.
- Role-based Access Control: Admin users have access to a dashboard, while regular users are directed to login and registration pages.
- Token Management: Secure management of active users and tokens for enhanced security.
- Design Patterns: Incorporates common design patterns like Singleton for efficient resource management.
- Clone the repository:
git clone https://github.com/your_username/login-endpoint-project.git
- Navigate to the project directory:
cd login-endpoint-project - Install dependencies:
yarn install
- Build the project
yarn build
- Start
yarn start
- Register as a new user or log in with existing credentials.
- Admin users can access the dashboard to manage users, roles, and permissions.
- Regular users can perform basic account management tasks like updating profile information or changing passwords.
You can also run the project using Docker Compose
docker-compose up