An open API service indexing awesome lists of open source software.

https://github.com/ibrsec/rentacar

Backend of Rent a Car App
https://github.com/ibrsec/rentacar

express jwt mongodb swagger token-authetication

Last synced: about 1 month ago
JSON representation

Backend of Rent a Car App

Awesome Lists containing this project

README

          








Logo

Rent a Car App backend


An awesome Rent a Car App Backend
Explore the docs ยป




.
Backend Swagger
ยท
Backend Re-doc
ยท
Report Bug
ยท
Request Feature


๐Ÿ“Ž Table of Contents ๐Ÿ“Ž


  1. About The Project

  2. ERD


  3. Overview

  4. Quick Setup

  5. Directory structure

  6. Built With


---


## โ„น๏ธ About The Project

[![rentacar](./swagger.png)](https://rentacar-express-api.vercel.app/documents/swagger/)


## โ„น๏ธ ERD
[![rentacar](./erdRentACarAPI.png)](https://rentacar-express-api.vercel.app/documents/swagger/)

(back to top)

---


## ๐Ÿ‘€ Overview

๐ŸŽฏ Express.js Framework: Developed a RESTful API using Express.js to manage car reservations, customer data, and admin functionalities with secure routes and efficient processing.

๐Ÿ“Š Database Management: Utilized MongoDB and Mongoose for data modeling, validation, and querying, supporting complex relationships between cars, customers, and reservations.

๐Ÿ”„ CRUD Operations: Implemented full CRUD functionality for cars, customers, and reservations, ensuring secure and seamless data operations for both admins and customers.

๐Ÿ›  Middleware & Error Handling: Integrated custom middleware for authentication, input validation, CORS handling, and error management using express-async-errors.

๐Ÿ” Advanced Features: Added searching, sorting, and pagination capabilities to enhance data retrieval and management in list views.

๐Ÿ“œ API Documentation: Employed Swagger and Redoc for comprehensive API documentation, facilitating easy integration and testing.

๐ŸŒ Scalable Deployment: Prepared the application for deployment on platforms like Vercel to ensure scalability and high availability.

(back to top)


## ๐Ÿ›ซ Quick Setup

```sh
# clone the project
git clone https://github.com/ibrsec/rentacar.git

# enter the project directory
cd rentacar

# install dependency
npm install

# develop
npm run start
```

(back to top)


## ๐Ÿ“‚ Directory structure

```diff
+ rentacar (folder)
+ |---src (folder)
| |---configs (folder)
| |
| |---controllers (folder)
| |
| |---middlewares (folder)
| |
| |---helpers (folder)
| |
| |---models (folder)
| |
| โ””---routes (folder)
|
|----.env
|----.gitignore
|----index.js
|----package.json
|----swagger.json
|----swaggerAutogen.js
|----vercel.json
โ””----readme.md
```

(back to top)

---


### ๐Ÿ—๏ธ Built With














(back to top)