Skip to content

Shoebtamboli/mern-stack-authorization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN STACK AUTHORIZATION

This project demonstrates a basic authorization flow in React, including components for logging in, registering, and displaying a dashboard. It uses react-router-dom for routing and axios for making HTTP requests.

Features

  • Login
  • Registration
  • Protected Dashboard route that requires authentication
  • User Authorization (Roles: Admin and User)
  • Error handling and display
  • CSS styling

Technologies Used

  • React
  • Axios
  • React Router DOM
  • CSS

Getting Started

Prerequisites

You need to have Node.js and npm installed on your machine. If they are not installed, download and install them from Node.js official website.

Installation

  1. Clone the repository

    git clone https://github.com/Shoebtamboli/mern-stack-authorization.git
  2. Run the command

    docker-compose up

Frontend running locally on http://localhost:3000 Backend running locally on http://localhost:5000