- Node 14+
- npm v6+
- PostgreSQL 14+
- Docker
npm start
yarn start
docker-compose build
docker-compose up
npm run start:local
It normally runs over the :8881
port.
- Download the repo.
- Set the configuration parameters in the
docker-compose.yml
file. - run
npm install
- In Postman or any other client, send a
GET
request to<host:port>/api/
to see the API welcome response.
- Enable test DB: run
npm run docker:test-db
or use local database connection variables in.env
- Run
npm test
to start the unit tests.
- Users:
/users
->[GET, POST]
- User:
/users/:ID
->[GET, DELETE, UPDATE]
- User:
- Cars:
/cars
->[GET, POST]
- Car:
/cars/:ID
->[GET, DELETE, UPDATE]
- Car:
- Reservations:
/reservations
->[GET, POST]
- Reservations:
/creservations/:ID
->[GET, DELETE, UPDATE]
- Reservations:
Found in: src/entities