Momentum logo
Team 10 Classroom

๐Ÿป Search & Automatic Deploys ๐Ÿป

Posted on Dec 20th, 2021

Todayโ€™s Topics

  • Postgres full-text search
  • Automatic deploys with Herokuโ€™s GitHub integration

๐ŸŽฏ Project due on Wednesday afternoon

๐Ÿ‘‰ If your project meets minimum requirements today, HUZZAH! That is awesome. You should be working on at least one spicy feature.

๐Ÿ‘‰ If your project does not yet meet minimum requirements, you should shoot for meeting them by the end of the day tomorrow.

Note

Depending on how youโ€™ve constructed your API, you might have separate endpoints for all of the below, or you might have fewer endpoints (for instance, if you nested answers in the question detail endpoint). What matters is that you have endpoints your front-end team can use to access this data, and they are documented somewhere.

QuestionBox, Back End

  • login, logout, and register
  • list all questions and answers
  • create a question
  • create an answer
  • mark an answer to own question as โ€œacceptedโ€
  • list of all questions and all answers for an authenticated user
  • star/favorite questions or answers

Social Cards, Back End

  • login, logout, and register
  • list all cards
  • list all cards for a user you follow
  • list all cards for an authenticated user
  • create a new card
  • follow/unfollow another user
  • list all users an authenticated user follows

๐Ÿ“– Read | ๐Ÿ“บ Watch | ๐ŸŽง Listen

๐Ÿ”– Resources

@action decorator in ViewSets

๐Ÿฆ‰ Code & Notes

  • DRF Library API
  • Notes on Django Queries These are the same notes you may have seen at the beginning of the Phase. Iโ€™m including them here for easy reference, as they show examples of queries and filters that might come in handy for search endpoints.

Back to home