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 - Application Submission - TypeORM setup, Express routing #12

Open
alexzhang1618 opened this issue Dec 16, 2024 · 0 comments
Open

Comments

@alexzhang1618
Copy link
Collaborator

alexzhang1618 commented Dec 16, 2024

This can be done in 2 PRs

  1. TypeORM / Postgres setup
  2. Express routing, business logic / form validation

Add new TypeORM / tables for applications
Screenshot 2024-12-08 at 1 56 57 PM

Application Submission

All form details will be kept on the frontend for easy iteration.

  1. Check DB to see if the user already submitted the application form
    1. If so, edit instead of create
    2. we can have an enum
      1. FormType = "Application" | "Waiver" | "Hacker Details"
      2. Might need some additional business logic down the line to make sure only certain app statuses can fill out some forms.
  2. User fills out the form on the frontend + submits
  3. We validate the form on the backend
  4. Create a new record or update the form in the database
    1. Note: if we’re doing resumes as actual files, we might need S3 here
    2. Let’s v0 this to be GDrive links first, then do S3 as a fast-follow (still during break though)

Add routes to GET POST PATCH DELETE /response

  • POST /responses
  • PATCH /responses/{uuid}
    • Shut POST and PATCH off when we stop accepting apps
      • Like directly in the route handler for business logic
  • GET /responses/{uuid}
  • DELETE /responses/{uuid}
  • GET /user/forms
    • Get all form responses for a user
@alexzhang1618 alexzhang1618 changed the title Application Submission Application Submission - TypeORM setup, Express routing Dec 16, 2024
@alexzhang1618 alexzhang1618 changed the title Application Submission - TypeORM setup, Express routing Backend - Application Submission - TypeORM setup, Express routing Dec 16, 2024
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