Title: How to Set Up an ERP Dashboard with Role-Based Access Control in React and Node.js
Description:
In this tutorial, I'll guide you through the setup of an ERP Dashboard with Role-Based Access Control. This project includes separate dashboards for Admin, Student, and Teacher roles, each with tailored features and permissions. You’ll learn how to initialize a Git repository, push it to GitHub, and set up both backend and frontend for a seamless development experience.
Table of Contents:
-
Initialize Git Repository
Open a terminal in your project folder and run:git init
-
Create a
.gitignore
file
Inside your project folder, create a file named.gitignore
and add the following to ignore unnecessary files:node_modules .env .DS_Store
-
Stage and Commit Changes
Stage all files and commit:git add . git commit -m "Initial commit"
-
Push to GitHub
- Create a repository on GitHub.
- Link your local repository to GitHub:
git remote add origin https://github.com/Shiva0909122/ERP_DASHBOARD.git git push -u origin main
- Open a new terminal:
cd MERNERP/backend npm install npm start
-
Open another terminal:
cd MERNERP/frontend npm install npm start
-
View your project at:
- Local: http://localhost:3000
- Network: http://192.168.0.108:3000
Check out the login and dashboards below:
GitHub Repository: ERP Dashboard with Role-Based Access
Thank you for watching! Please like 👍, share, and subscribe for more tutorials!
Happy coding!