In this challenge, we will build a movie reviewer API with modular monolith design pattern. This pattern organizes an application into separate, independently manageable modules, enhancing code reusability and maintainability.
This project have three modules: movie
, review
, and user
module. Your task is to complete the project based on the challenge objectives.
- Add
userId
validation by callingUserService.getUserById
, TODO - Add
movieId
validation by callingMovieService.getMovieById
, TODO TODO - Validate review uniqueness, so it can't be written twice for each
userId
andmovieId
, TODO - Include property
movieTitle
ongetMovieReviews
by joining table review and movie using sequelize, TODO
https://api.postman.com/collections/23885186-2e9ace31-2178-4aa5-bbe4-230742bd2151?access_key=PMAT-01HD1223JKXT8C8H3KEJ1XMK5C
- Fork this repository
- Clone forked repository
- Create a new branch:
git checkout -b solution
- Install dependencies:
npm install
- Create a folder of your nickname:
mkdir nickname
- Copy files from the
challenge
directory to your own folder - Copy
.env.example
to.env
- Complete the objectives
- Run your server using
node yourfolder/src/index.js
- Commit and push your changes
- Create a Pull Request to original repository