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

Backend - User Routes #11

Closed
alexzhang1618 opened this issue Dec 16, 2024 · 0 comments · Fixed by #26
Closed

Backend - User Routes #11

alexzhang1618 opened this issue Dec 16, 2024 · 0 comments · Fixed by #26
Assignees

Comments

@alexzhang1618
Copy link
Collaborator

alexzhang1618 commented Dec 16, 2024

Pending #10
Screenshot 2024-12-08 at 1 56 57 PM

Note: No need for firebase_uid, id will be the firebase uid.

  1. Validate new user payload (done both client and server-side)
    1. Is password long/good enough
    2. does account already exist
    3. is email an .edu email
    4. etc. etc.
  2. Talk to Firebase to create a new user
  3. Insert the new user into our database

User

  • POST /user
    • Attempts to create user in Firebase first, then inserts into Postgres after
    • Use the Firebase id as the Postgres primary key for user
  • GET /user
  • PATCH /user
    • Should only be able to update first lastname tbh, idk if we really need
  • DELETE /user
    • Deletes from both Firebase and Postgres
@alexzhang1618 alexzhang1618 changed the title User Routes Backend - User Routes Dec 16, 2024
@echang594 echang594 self-assigned this Dec 23, 2024
@echang594 echang594 mentioned this issue Dec 29, 2024
13 tasks
@echang594 echang594 linked a pull request Dec 29, 2024 that will close this issue
13 tasks
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

Successfully merging a pull request may close this issue.

2 participants