This is a full-stack web application built using React for the frontend and Express for the backend. The application allows users to rent cars and schedule service appointments at the service center.
- User authentication: Users can sign up, log in, and log out securely.
- Car rental: Users can browse available cars, view details, and rent cars.
- Service scheduling: Users can schedule service appointments for their cars.
- Admin panel: Admins can manage cars, services, and user accounts.
- Node.js
- npm (Node Package Manager)
- MySQL
- Clone the repository:
git clone https://github.com/Kushan2k/react-car-rental-service-with-express-api.git
- navigate in to the 'backend' folder
cd backend && npm i && npx prisma generate && npx prisma db push
- add the environment variables in .env file
JWT_SECRET=" "
ADMIN_KEY=" "
DATABASE_URL=" "
- start the backend sserver
npm run dev
- navigate to the front end
npm i && npm start
Here are some screenshots of the application: