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 Endpoints 8 - Forgot Password Skeleton #36

Open
theNatePi opened this issue Jan 10, 2025 · 0 comments
Open

Create Endpoints 8 - Forgot Password Skeleton #36

theNatePi opened this issue Jan 10, 2025 · 0 comments

Comments

@theNatePi
Copy link
Collaborator

This sprint contains two tasks.

REMINDERS

  • All work should be done in JS/JSX, not TS/TSX
  • Test all endpoints using Postman

Task 1

Create four more endpoints for the backend

GET         /rooms
GET         /rooms/:id
POST        /rooms
PUT         /rooms/:id
DELETE      /rooms/:id

For a description of each of these endpoints, see the DB model.
Follow proper API conventions and return status codes along with your response. Namely 200, 404, 500, etc.

Put your endpoints into /server/routes/[FILENAME].js
Replace FILENAME with the name of the DB table that the endpoint is for.

Don't Forget: use the keysToCamel function, as seen in the sample users.ts file, to make the SQL keys into camel case

Task 2

Create a skeleton for the "forgot password" page

Place your page in client/src/components/login/ForgotPassword.jsx
Add a route for /forgotpassword in the App.jsx file
Add a button to the login page which, when clicked, sends a user to ForgotPassword
Don't worry about the functionality yet

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

1 participant