API with a simple CRUD for handling cars. I follow the concepts of SOLID, OOP and using generics for reuse.
-
Clone the repository.
git clone [email protected]:felipemalli/car-shop.git
-
Install dependencies:
npm install
-
Run the project:
npm run dev
The default url for accessing endpoints is: http://localhost:3001
-
Return all cars:
GET /cars
-
Return a car:
GET /cars/{id}
-
Create a car:
POST /cars
-
Update a car:
PUT /cars/{id}
-
Delete a car:
DELETE /cars/{id}
- Typescript
- NodeJS
- MongoDB
- Jest
- Mocha/Chai/Sinon