Skip to content

MohitMurotiya/CarServiceApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On-Demand Car Service Application

▶️ Demo

🎯 About

I have started this project with the purpose of learning how to structure a Web App using MERN stack.

  • Created REST-APIs with NodeJS & Express.
  • Created Front-End using React.
  • Used MongoDB Atlas for database.
  • Used JWT for Authentication and Authorization.
  • After Login Each User is route according to his/her role and will able to see only his/her functionalities only. And If he tries to access with URL he’ll be not able to do it.
  • There are 3 Roles ADMIN, MECHANIC & CUSTOMER.
  • For more Informatiom about the functionalities of each role.

Technologies Used

✅ Requirements

Before starting 🏁, you need to have Git and Node installed.

Run Locally

  • To clone the Project
  git clone https://github.com/MohitMurotiya/CarServiceApplication.git
  • Go to the Front-End project directory
  cd Client/ca-wash-system

For Back-End

  • Create a account in Atlas
  • Deploy a free tier Cluster and create a Database.

Configure your Database with NodeJs

  • Go to the Back-End project directory
  cd Server
  • There are 4 Microservices
  • Inside each Microservice a dbConfig.js file is there in config folder. Inside that you have to provide your database credentials.
  • Install dependencies for each Microservice (Admin, Customer, Mechaninc, Order).
  cd Admin
  npm install
  • Start the server of all Microservices.
  node server.js
  • For the ADMIN access you need to insert a record manually in the members database as a role ADMIN.