The Car Rental System API allows users to manage car rentals, including booking, returning, and tracking cars. This API is designed to be a backend service for a car rental application, providing endpoints for CRUD operations on cars, customers, rentals, and more.
- Car Management: Add, update, delete, and list available cars.
- Customer Management: Register new customers.
- Authentication: Secure endpoints with user authentication.
- Backend Framework: Express.js
- Database: PostgreSQL
- Authentication: JWT (JSON Web Token)
- Documentation: Postman
- Node.js
- PostgreSQL
- Git
-
Clone the repository:
git clone https://github.com/SarvariHarshitha/car-rental-api.git cd car-rental-api
-
Install dependencies:
npm install
-
Configure environment variables:
Create a
.env
file in the root directory and add the following:DATABASE_URL=your_database_url JWT_SECRET=your_secret_key
-
Set up the database:
npx prisma migrate dev
-
Run the application:
npm start
Complete documentation is available at https://documenter.getpostman.com/view/38347414/2sAYBUDXXd
Contributions are welcome! Please fork this repository and submit a pull request for any feature additions or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to customize this template based on your specific implementation and requirements.