BroncoHacks-Website / Application-Portal

2 stars 2 forks source link

Full Stack: Create a "CreateTeam/JoinTeam Page" (React, Express) #37

Open DanielPasion opened 6 months ago

DanielPasion commented 6 months ago

User Story

As a user who does not belong to a team, I would like to be able to access a page that gives me the option to either create a team or join a team via access code. Once I choose one of the options, it should be able to redirect me to the team management page and I should no longer be able to see this CreateTeam/JoinTeam Page unless I leave the current team im on.

Requirements

You will be creating the page that loads when a user is not part of a team. The page will be split up into two sections

Image

Reference: Image

Image

Acceptance Criteria

jsouliss commented 6 months ago

Most of the backend is completed I may have found a bug with the database.js file. The USER may be a environmental variable for MacOS changed from USER to DB_USER instead and works now.

I still need to test the backend code I wrote.

jsouliss commented 6 months ago

Tested a few routes fixed some logic and syntax errors. POST and GET requests work I used postman for testing, still need to test a few more routes.

Screenshot 2024-04-06 at 2 01 31 PM Screenshot 2024-04-06 at 2 23 16 PM Screenshot 2024-04-06 at 2 23 23 PM
jsouliss commented 6 months ago

Altered Tables TeamMember and Team, when a team is deleted the individual team members in the TeamMember Table are deleted first then the Team is deleted, I think backend is done for this task???

The following routes work:

Get all teams Create new team Delete team Get team by id

Screenshot 2024-04-06 at 5 40 03 PM Screenshot 2024-04-06 at 5 38 04 PM Screenshot 2024-04-06 at 5 44 36 PM