This repository contains a backend application built with Node.js and Sequelize ORM for handling user authentication with multiple roles using MySQL as the database.
- π User Authentication: Implement secure user authentication with username and password.
- π€Role-Based Access Control (RBAC): Support multiple user roles (e.g., admin, user) with different access permissions.
- π¨ MySQL Database: Utilize MySQL database to store user data, roles, and permissions.
- π¬ Follow Other Users: Users can follow/unfollow other users to see their posts on their feed.
- π¬ Sequelize ORM: Use Sequelize as the ORM (Object-Relational Mapping) tool to interact with MySQL database.
- Frontend:
React.js
- Backend:
Node.js, Express.js,MySQL
- Authentication:
JSON Web Tokens (JWT)
- Orm:
Sequelize
- Database:
MySQL
.
To run the project in your local environment, follow these steps:
- Clone the repository to your local machine.
- Run
npm install
oryarn
in the project directory to install the required dependencies. - Run
npm run start
oryarn start
to get the project started. - Open http://localhost:3000 (or the address shown in your console) in your web browser to view the app.