Skip to content

Add NodeJS/mongo to view/add/remove teams #39

Description

@coreysnyder04

We'll need to create a new schema for teams to point to a 'teams' collection

  • Team Name
  • Player 1 - ID of user record
  • Player 2 - ID of user record

We need to create a few new routes:
TEAMS:

  • /teams - POST - Add a team
  • /teams - GET - retrieve the JSON for all teams
  • /teams/:teamID - DELETE - remove the team by ID
  • /teams/:teamID - GET - get the team by ID
    MATCHES:
  • /matches/team - POST - Add a match including two teams

Write unit tests to test this logic. Don't start UI, that will be done in a different issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions