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 Items CRUD Routes #1

Open
NwinNwin opened this issue Jan 16, 2025 · 0 comments
Open

Create Items CRUD Routes #1

NwinNwin opened this issue Jan 16, 2025 · 0 comments
Assignees

Comments

@NwinNwin
Copy link
Contributor

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 items.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 itemsRouter 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

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

No branches or pull requests

2 participants