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.
- Login
- Registration
- Protected Dashboard route that requires authentication
- User Authorization (Roles: Admin and User)
- Error handling and display
- CSS styling
- React
- Axios
- React Router DOM
- CSS
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.
-
Clone the repository
git clone https://github.com/Shoebtamboli/mern-stack-authorization.git
-
Run the command
docker-compose up
Frontend running locally on http://localhost:3000 Backend running locally on http://localhost:5000