The "Cars API" server is a REST API server for working with cars data. The server provides the following functionality:
-
CRUD operations for selecting one or more cars, creating, updating and deleting cars.
-
Fetch only manufacturer data for a given car.
-
Trigger a process which automatically remove the owners who bought their cars before the last 18 months.
-
Trigger a process which automatically applies a discount of 20% to all cars having a date of first registration berween 12 and 18 months.
To run the application, you need Docker and Docker Compose installed on your machine.
Run this docker-compose command to run the app:
$ docker-compose up --build
This command will create the Postgres database and install all the necessary dependencies for launching the project. After this is complete, the application will be run on port 3000.
Use the following configurations if you need to connect your client to the database:
Host: localhost
Port: 5432
Database: ultra
User: admin
Password: admin
To see the Swagger documentation, open a browser and navigate to: http://localhost:3000/api