/login-multi-role-backend

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.

Primary LanguageJavaScript

login-multi-role-backend

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.

πŸš€ Features

  • πŸ— 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.

πŸ› οΈ Main Technologies

  • Frontend: React.js
  • Backend: Node.js, Express.js,MySQL
  • Authentication: JSON Web Tokens (JWT)
  • Orm: Sequelize
  • Database: MySQL.

🚦 Running the Project

To run the project in your local environment, follow these steps:

  1. Clone the repository to your local machine.
  2. Run npm install or yarn in the project directory to install the required dependencies.
  3. Run npm run start or yarn start to get the project started.
  4. Open http://localhost:3000 (or the address shown in your console) in your web browser to view the app.