Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Classes and Scheduled Classes CRUD Routes #31

Open
stevem-zhou opened this issue Dec 6, 2024 · 1 comment
Open

Create Classes and Scheduled Classes CRUD Routes #31

stevem-zhou opened this issue Dec 6, 2024 · 1 comment
Assignees
Labels

Comments

@stevem-zhou
Copy link
Collaborator

stevem-zhou commented Dec 6, 2024

Description

  • Your task is to create backend routes for some of the tables. These routes will be used as a way to retrieve and put information into the corresponding tables.

Instructions

  • Add the backend .env file in /server (can be found here)
  • Place routes inside a file named classes.js and scheduled_classes.js located in /server/routes/
    • make sure each set of routes per table, are in their corresponding files
      • i.e. Class routes should be in a class.js file and class_enrollments routes should be in a class_enrollments.js
      • feel free to check out the Sample CRUD Routes that were already provided
  • Create CRUD routes based on the Project Architecture Document
  • When completed make sure to test with Postman and the neondb database (you will need the backend .env file if you don’t have it already)
  • Now add your new classesRouter and scheduledClassesRouter in server/src/app.ts similarly to how it's currently adding usersRouter

Notes

  • See Project Architecture document for routes

Acceptance Criteria

  • All routes work as expected and return the values indicated by the Output column
  • Include pictures of your POSTMAN testing
  • When creating your pull request follow the steps in the Pull Request Tips

Resources

@stevem-zhou
Copy link
Collaborator Author

josh aditya
-1 josh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants