You are the CTO of ACME Education Inc. Your job is to create an express-sequelize API for storing user data, their academic awards and their associated mentors.
- only a user with 2 or more awards can be a mentor
- a user cannot mentor themselves
- HINT: a key part of this is removing a users mentees if their award count falls below 2.
- User
- Award
- GET /
- GET /users
- POST /users
- PUT /users/:id
- DELETE /users/:id
- POST /users/:userId/awards
- DELETE /users/:userId/awards/:id
- Front end for API (may be written however you want, Vanilla JS, Nunjucks, React, etc)
- Tests for Models (Mocha/Chai)
- Tests for Routes (Mocha/Chai + Supertest)
Grade = (# of Model/Route completed + Specs passed / 10)
+ 10 points for every Extra Credit spec completed.
- first step - npm init + create a db in Postico
- second step - creating and deleting users
- third step - creating and deleting awards
- fourth step - adding and removing mentors for a user
- fifth step - focus on business rules
This assignment is Open book/Open notes. You may consulte any documentation/stackoverflow/class notes you need, as well as ask a fellow for help.