A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
Welcome to the Car Rental API project, an application developed for managing a car rental system. This document provides essential information for setting up and using the application.
To run this application, you need to have the following software installed on your machine:
- Node.js (v18 or higher)
- Docker (v20.10 or higher)
- Docker Compose (v1.27 or higher)
git pull git@github.com:ssssvio/carRentalApi.git
cd carRentalApi
-
.env
File: Copy the.env.example
file to.env
and configure the required environment variables.cp .env.example .env
-
docker-compose.yml
Configuration: Check and configure thedocker-compose.yml
file as needed, including passwords and other sensitive information.
To start the application with Docker, run the following command:
docker-compose up --build -d
After the execution is complete, the API will be available within 5-7 minutes at http://localhost:3000/api
. You can check if everything is working correctly by accessing this URL.
- Response:
- Status: 200
- Body: Array of
UserDTO
objects
- URL Parameters:
id
(number): User ID
- Response:
- Status: 200
- Body:
UserDTO
object
- Body:
UserDTO
object - Response:
- Status: 201
- Body:
UserDTO
object
- URL Parameters:
id
(number): User ID
- Body:
UserDTO
object - Response:
- Status: 204
- URL Parameters:
id
(number): User ID
- Response:
- Status: 204
- Body:
LoginDto
object - Response:
- Status: 201
- Body: JWT Token
- Response:
- Status: 200
- Body: Array of
CarDTO
objects
- URL Parameters:
id
(number): Car ID
- Response:
- Status: 200
- Body:
CarDTO
object
- Body:
CarDTO
object - Response:
- Status: 201
- Body:
CarDTO
object
- URL Parameters:
id
(number): Car ID
- Body:
CarDTO
object - Response:
- Status: 204
- URL Parameters:
id
(number): Car ID
- Response:
- Status: 204
-
If you want to download the image directly from Docker Hub:
docker pull ssavio/car-rental-api
-
For contributions and suggestions, feel free to open an issue or submit a pull request.
Thank you for using the Car Rental API! If you have any questions or need assistance, feel free to contact us.
Nest is MIT licensed.