[Feat] Create a Back-End Logic for Favorites
glaucia86 opened this issue · comments
Glaucia Lemos commented
As a developer, I must create the logic for the "Favorites" button in the Back-End (API) side.
And it must meet the following specifications:
- First, determine whether the user is logged in. If so, the user can click the
Favorites button
. - Once logged in, the user can favorite as many posts as they want.
- Allow 'Update' and 'Remove' Post Favorites
- If there could be a way to use local storage before the user checks out,
- Make use of the Event Grids feature as well.
You must use:
- MongoDB
- Mongoose
- Node.js/TypeScript
- Azure Functions
- Azure Event Grid
- Local Storage
Some important resources to follow up this task
-
Event Grids
-
Some samples usage with Likes Button logic from the Community
-
Some resources about Mongoose with TypeScript
Wassim Chegham commented
Implemented in d1d2c9f