What you need to do, in order for this to work, is to create a frontend in ReactJS that can communicate with this backend through https calls with fetch
in nodejs.
The requirements are:
- The website should show a history of all matches on the front
- The website should display matches and the players in those matches
- The website should be able to track games, both player score per player and who won
- The website should be mobile friendly, or designed for mobile first
{
name: string
}
{
id: string;
name: string;
}
{
}
[
{
id: string;
name: string;
}
]
{
}
{
mmr: number;
}
{
name: string;
}
{
id: string;
name: string;
}
{
}
[
{
id: string;
name: string;
}
]
{
playerId: string;
goals: number;
wasWinner: boolean;
}
{
game_id: string;
player_id: string;
goals: number;
was_winner: boolean;
}
{
gameId: string;
}
[
{
game_id: string;
player_id: string;
goals: number;
was_winner: boolean;
}
]
{
}
[
{
game_id: string;
player_id: string;
goals: number;
was_winner: boolean;
}
]
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
TODOs:
- Authentication
- Object Validation
- ORM for the database