Azure-Samples / contoso-real-estate

Intelligent enterprise-grade reference architecture for JavaScript, featuring OpenAI integration, Azure Developer CLI template and Playwright tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feat] Create a Back-End Logic for Favorites

glaucia86 opened this issue · comments

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

Implemented in d1d2c9f