This is a simple REST API with Repository Pattern.
Please read the CASE file to understand the problem.
Please read the GUIDE file to understand the solution.
git clone [email protected]:synrgy-5-fsw-1-cihuy/challenge-6-guide.git
cd challenge-6-guide
npm install
npm run dev
npx sequelize-cli db:migrate
npx sequelize-cli db:seed:all
Request -> Route -> Controller -> Service -> Repository -> Database -> Repository -> Service -> Controller -> Response
- Handle request and response
- Call service
- Handle business logic
- Call repository
- Handle database query