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
Make sure you have the most updated version of main. I added some fields to the schema.
Create a new branch from main, name it whatever you want. Make sure all the changes are made in your branch.
Backend: Implement some filtering endpoint
This is similar to the getMember endpoint implemented by the other group. Feel free to refer to the format. I will suggest looking into the mongoose find method to learn more about its implementations.
Implement two endpoints: (GET)filterByYear and (GET)filterByRoles.
filterByYear will take in a JSON with one field, year, i.e. req.body.class will be the parameter to the find mongoose method
Similarly, filterByRoles will take in a JSON with one field, role.
Create two new files in client/components, name hemt addMember.js and addMember.css.
There is no design for this page, so you can be as creative as you want with this one, but make sure there are text fields covering ALL the necessary information for adding a user, i.e. name, email, year, and role.
ps. “id” will be generated automatically by the database so we won’t need to manually add it.
Have fun with this, and let me know if you have any questions :))
The text was updated successfully, but these errors were encountered:
Preparation:
Backend: Implement some filtering endpoint
Frontend:
Have fun with this, and let me know if you have any questions :))
The text was updated successfully, but these errors were encountered: