Giter VIP home page Giter VIP logo

gmsv2's Issues

Create Team Display Page

A Team requires the following fields:

  • Club: Club (see #8)
  • League: Enum (start with some dummy leagues)

The team page should be accessible from the teams list on the club page

Pretty enums

Enum values such as League or Gender are printed in capital letters on the frontend, which looks a bit funny.

We should find a way to make it look prettier, i.e. have a String property on the Enum and return that value to the frontend?

New club form and generic form component

Create a new club form and create a reusable form component on the front end with basic styling

  • enforce club short name as 3 characters
  • mandatory fields (name, short name, address)

Clubs back end REST

endpoints required:

getAllClubs GET /clubs
getClubById GET /clubs/{id}
addClub POST /clubs
deleteClub DELETE /clubs/{id}
editClub PATCH /clubs/{id}

Create Clubs List Page

Using agGrid display a list of all clubs with the ability to navigate to individual clubs from their rows

Player Backend REST

endpoints required:

  • getAllPlayers() GET /players
  • getAllPlayersForClub() GET /players/{club}
  • getAllPlayersForTeam() GET /players/{team}
  • getPlayer GET /player/{id}
  • addPlayer POST /players
  • editPlayer PATCH /players/{id}
  • deletePlayer DELETE /players/{id}

Create Player Display Page

a Player should have the following fields:

  • Name: string
  • Email address: string
  • Home address: string
  • Team: Team (see #9) (a player should be able to belong to one team only), this should link to the team display page

TODO: decide how to navigate to player page, possible suggestions so far:

  • search function on home screen for all player search with filters for club and team
  • list of players on team page

Draw a logo

Make a "pretty" logo and add it to the home page

Style agGrid

Make columns sensible widths (resizable)
Make grid not take up all the space

Pretty Print for team names and club names in URLs

Options:

  1. Use long name with no spaces, e.g. /clubs/amazing-club/.
    1. Player names may not be unique so would need a way around this, e.g. /players/bob-bobson-3/
    2. Names of clubs, teams and players may change, so IDs may change then. On a modification or addition of club/team, the pretty ID could be changed, e.g. /players/alice-maiden/ to /players/alice-married/. The old links would become dead.
  2. Use plain numbers, e.g. /clubs/123456/.
    1. We'd need to keep track of which IDs have been used. Currently the DB is in-memory, so the server could keep track of IDs, but the database was more persistent, this would be more complex.
  3. Use UUIDs, e.g. /clubs/c09b4643-4632-4ea1-8df4-626aa769344a which would be unique, but do not look pretty.
    1. We wouldn't have the complexity of having to convert between pretty IDs and real IDs.

Player backend - show players per club

We need an Endpoint to return a list of players associated with a team.

The frontend currently returns ALL players in team.service.ts. The request in this service has to be updated when the endpoint is there.

Create Club Display Page

An individual club needs the following fields:

  • Name: string
  • id: string (uuid)
  • Address: string
  • Short name: string (3 chars)
  • Teams: Teams Array

Teams Back End REST

endpoints required:

  • getAllTeams() GET /teams
  • getTeam() GET /teams/{id}
  • getAllTeamsForClub() GET /club/teams (can't decide if this should be a clubs endpoint or a teams one - will leave it to whoever picks it up)
  • addTeam() POST /teams
  • editTeam() PATCH /teams/{id}
  • deleteTeam() DELETE /teams/{id}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.