Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/renatozr/car-dealership-api

An API that handles vehicle data from a car dealership
https://github.com/renatozr/car-dealership-api

expressjs mongoose oop swagger typescript unit-testing zod

Last synced: about 2 months ago
JSON representation

An API that handles vehicle data from a car dealership

Awesome Lists containing this project

README

        


Car Dealership API


An API that handles vehicle data from a car dealership




View Demo


(the free deploy spins down with inactivity, which can delay requests by 50 seconds or more)



## About The Project

To exercise RESTful API development, unit testing, OOP and documentation with Swagger.

## Getting Started

### Prerequisites

- NPM
- MongoDB

### Installation

1. Clone the repo
```sh
git clone [email protected]:renatozr/car-dealership-api.git
```
2. Enter the directory
```sh
cd car-dealership-api
```
3. Install NPM packages
```sh
npm install
```
4. Rename .env.example file to .env
5. Fill in the environment variables (example below)
```sh
PORT=3001
MONGODB_URI=mongodb://localhost:27017/CarDealership
SERVER_URL=http://localhost:3001
```
6. Run the project
```sh
npm run dev
```
7. Run the project tests
```sh
npm run test
```