- You can check the live demo of the system here
A car rental system which enables customers to rent cars they need and manage their reservations with the option of paying later. The car agencies are allowed to register on the system and add their cars to the system. The system admin can manage the whole system. The system is built using Node.js and Express.js. The database is built using MySQL.
-
To install all the dependencies, run the following command in the terminal:
npm install
- You can create your database schema by running the Data Definition script in Database Schema
- The system uses JSON Web Tokens for authentication and authorization.
- The system uses cookie-parser to store the access token in the cookies.
1- Create a database with the explained database schema and ER diagram
2- Configure the .env file and set the following variables:
- DB_HOST
- DB_USER
- DB_PORT
- DB_PASS
- DB_NAME
- ACCESS_TOKEN_SECRET -> Secret key for generating access tokens
- EMAIL -> Email address from which you want to send the emails
- PASSWORD -> Password of the email address
3- Make sure you have installed all the dependencies by running the following command in the terminal:
npm install
4- Run the following command in the terminal to start the server:
npm start
5- Open the browser and go to the following link:
https://localhost:3000
- Note: If you want to run the server on a different port, you can change the port number in index.js file