You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to implement a CategoryScore for each category for a User
Model
courseId: foreign_key
The CourseId linked to CategoryScore
userId: foreign_key
The UserId linked to CategoryScore
category: foreign_key
The Category linked to CategoryScore
score: integer
The score for Category
letterGrade: string[enum]
The letter-grade equivalent for the CategoryScore
Checklist
To add assignments to the app, all of the following will be needed.
model
how to represent the fields above in the database
router
Create paths for CRUD (Create, Retrieve, Update, Delete) for assignments and routes to the appropriate controller function
validator
Checks the request for proper formatting, existence of all required fields, etc. Used when the user is creating or updating an assignment to ensure the data is valid
controller
Handles the web requests and prepares the data of a response to the user
Defers to the service for core functionality
service
The core functionality of the app. For this issue, it will just forward the CRUD commands to the database
serializer
Receives the response data from the controller, as a assignment object following your model, and formats it into a JSON string for FE consumption
testing
Write tests modeled after User tests to ensure that you feature works properly
The text was updated successfully, but these errors were encountered:
Feature request
We need to implement a CategoryScore for each category for a User
Model
courseId: foreign_key
The CourseId linked to CategoryScore
userId: foreign_key
The UserId linked to CategoryScore
category: foreign_key
The Category linked to CategoryScore
score: integer
The score for Category
letterGrade: string[enum]
The letter-grade equivalent for the CategoryScore
Checklist
To add assignments to the app, all of the following will be needed.
The text was updated successfully, but these errors were encountered: