Welcome to the User Role Management API repository, a secure RESTful API that provides user management and role-based access control (RBAC).
- Project Overview
- Functionalities
- Technologies
- Installation
- Usage
- Contributors
- Contributing
- Acknowledgements
The User Role Management API project offers a backend solution for managing users and their roles. It includes role-based access control, allowing different users to have different access levels based on their roles.
- Role-based access control for different user roles
- Framework: Node.js, Express.js
- Database: PostgreSQL (using Prisma ORM)
- HTTP Client: Axios
- Framework: React (with Redux Toolkit for state management)
- Database Interaction: RTK Query for managing API calls
To set up the User Role Management API project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/RIADH-NOURI/prisma-redux-toolkit-prj.git cd prisma-redux-toolkit-prj/backend 2. **Install dependencies:** ```bash npm install
-
Configure the environment variables: Create a
.env
file in thebackend
directory and add the necessary configurations:PORT=3000 DATABASE_URL=your_database_url
- Run the application:
npm start
-
Navigate to the frontend directory:
cd ../client
-
Install dependencies:
npm install
-
Run the application:
npm run dev
- Run the backend server: Start the backend server using
npm start
in thebackend
directory. - Run the frontend application: Start the frontend application using
npm run dev
in theclient
directory.
Run the frontend and backend application in one command via concurrently library:npm run dev