Node.js backend service for managing parking spot bookings. The service provides RESTful API endpoints for creating, retrieving, updating, and deleting bookings. It utilizes TypeScript, Express.js, and TypeORM.
- Matija Milekic ([email protected])
- Tech task is available at 'task/Tech challenge.pdf'
- Install dependencies
$ npm i
- Set up your database and configure the connection in 'src/data-source.ts'.
- Run a PostgreSQL container
$ docker run --name postgres-local -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=booking_db -d postgres
- Run the service
$ make run-local
$ make prepare-test
$ make run-test
- Swagger documentation is available at 'src/swagger.yaml'
- Postman collection is available at 'postman-collection/Booking Node Service.postman_collection.json'