This project features a robust REST API built with Node.js and TypeScript. It implements JWT (JSON Web Token) with Refresh Token rotation and RBAC (Role-Based Access Control). The API also includes logging audits and automated testing using Jest.
To download and run this application, follow these steps:
Visit the Releases Page
Go to the Releases page to find the latest version of the software.
Download the Application
Locate the latest release and click on it. You will find various files to choose from. Select the one that matches your operating system. It might be labeled as api-auth-jwt-rbac-win.exe, api-auth-jwt-rbac-mac.zip, or api-auth-jwt-rbac-linux.tar.gz.
.exe file to start the installation. Follow the instructions on your screen..zip file and move the application to your Applications folder..tar.gz file and run the installation commands in your terminal..env file in the application directory and add the following variables:
DATABASE_URL=mysql://username:password@localhost:3306/database_name
JWT_SECRET=your_jwt_secret
Replace username, password, and database_name with your actual MySQL credentials.
node dist/index.js
http://localhost:3000. You can now make requests to the API.To get started, visit this page to download. Follow the installation steps outlined above.
Once installed, you can use the API for various operations:
User Registration: Sign up a new user.
User Login: Obtain JWT for logged-in users.
Access Control: Use RBAC to restrict or allow API access based on user roles.
For more detailed API usage instructions, refer to the documentation linked in the application menu.
If you encounter issues, check the following:
If you still face issues, feel free to create an issue in the GitHub repository for assistance.
We welcome contributions! If you have a bug fix or feature suggestion, feel free to fork the repository, make your changes, and submit a pull request.
For support, you can raise questions in the GitHub repository. Community members and contributors will be happy to assist you.
This project is licensed under the MIT License. See the LICENSE file for details.
This project deals with various topics such as:
api-rest, auth-api, backend, clean-architecture, express, jest, jwt, mysql, nodejs, rbac, security, typescript.
Visit the Releases page now to get your copy and start building secure applications!