-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Task
- Implement activity main pages according to Figma
- Create backend schemas to store sections/activities/questions
- User schema has an array of activity id’s for the activities that the user has completed
- Section schema contains id, string for title, list of activity id’s
- Activity schema contains id, section, list of question id’s, section id
- Question schema contains id, question type, question itself, optional field for list of answer choices (for mcq), and blurb for the popup that shows after hitting continue
- Create backend routes as necessary to access data that is needed
- GET routes for sections, activities, questions
- POST/PUT route to update the activities a user has completed (add to list of activity id's in user schema)
- Future tasks in admin portal may involve POST/PUT/DELETE routes on activity id's (do not worry about this for now)
- Connect activity home page to main pages, open up correct activity pages according to which activity is selected from home page
- Note: it is not necessary to store activity responses, just which activities a user has completed.
Resources