Nest framework based project implementing a movie database using TypeORM and PostgreSQL
/movies- GET
/: get all movies - GET
?sort=rating: get all movies sorted by average rating - GET
?genre=<GENRE>: get movies filtered based on GENRE parameter - GET
?title=<TITLE>: get movies filtered based on TITLE parameter - GET
/upcoming: get upcoming movies - GET
/:id: get existing movie - POST
/: create a movie - PATCH
/:id: update existing movie - DELETE
/:id: delete existing movie
- GET
/users- GET
/: get all users - GET
/:id: get existing user - POST
/: create new user - DELETE
/: delete all users - PATCH
/:id: update existing user - DELETE
/:id: delete existing user
- GET
/ratings- GET
/: get all ratings - GET
/:id: get existing rating - POST
/: create new rating - POST
/bulk: create multiple ratings - DELETE
/: delete all ratings - PATCH
/:id: update existing rating - DELETE
/:id: delete existing rating
$ npm install- PostgreSQL
- NodeJS > v18
$ npm installnpx ts-node src/scripts/seed.tsnpm run start:devymdb.postman_collection.json file provided for Postman collection setup with endpoints & initial body
$ docker compose up# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov