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
- Host: GitHub
- URL: https://github.com/ibrsec/rentacar
- Owner: ibrsec
- Created: 2024-08-06T10:06:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T12:39:01.000Z (almost 2 years ago)
- Last Synced: 2025-02-26T07:44:12.696Z (over 1 year ago)
- Topics: express, jwt, mongodb, swagger, token-authetication
- Language: JavaScript
- Homepage: https://rentacar-express-api.vercel.app/documents/swagger/
- Size: 395 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
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 ๐
---
## โน๏ธ About The Project
[](https://rentacar-express-api.vercel.app/documents/swagger/)
## โน๏ธ ERD
[](https://rentacar-express-api.vercel.app/documents/swagger/)
---
๐ฏ 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.
```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
```
```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
```
---