This repository contains the code for a user-friendly cross-platform application developed using Flutter. The application aims to provide a peer-to-peer car rental service, offering convenience and eliminating the need for traditional rental services. It allows users to easily rent cars from individuals within their community.
https://github.com/nirvanabaid/Car-Rental-Backend
To set up the development environment and run the project locally, follow these steps:
Clone this repository to your local machine.
bashgit clone https://github.com/sandeepkrai/Car-Rental-Frontend/
Install the necessary dependencies for the Flutter application. Refer to the official Flutter documentation for instructions on how to set up Flutter and its dependencies: Flutter Documentation
Install the required Node.js packages for the backend system. Navigate to the backend directory and run the following command:
npm install
Set up the MySQL database by importing the provided SQL dump file. Ensure you have MySQL installed and create a new database. Then, import the SQL dump file using the following command:
cssmysql -u username -p database_name < database_dump.sql
Configure the backend API connection to the MySQL database. Open the backend/config.js file and update the MySQL connection details accordingly.
Run the backend server. In the backend directory, execute the following command:
sqlnpm start
Run the Flutter application using your preferred IDE or by executing the following command in the root directory of the Flutter project:
flutter run
Contributions to this project are welcome. If you find any bugs or have suggestions for improvement, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. Feel free to use and modify the code according to your needs.