Skip to content

Play Framework with Angular Project. Analysis of football actions to produce relevant stats

License

Notifications You must be signed in to change notification settings

Mihai-Ionut-Aurel/play-angular-sport-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[![MIT License][license-badge]][LICENSE]

Demo for Job Interview

This project was build as a showcase for a job interview.

Used Summary

How to use it?

Prerequisites

Let's get started,

  • Fork or clone this repository.

  • Used any of the following SBT commands which will intern trigger frontend associated npm scripts.

    sbt clean           # Clean existing build artifacts

    sbt stage           # Build your application from your project’s source directory

    sbt run             # Run both backend and frontend builds in watch mode

    sbt dist            # Build both backend and frontend sources into a single distribution artifact

    sbt test            # Run both backend and frontend unit tests

In addition added:

├── /app/                       # The backend (scala) application sources (controllers, models, views, assets)  
│     ├──controllers/
│        ├── FrontendAPIController.scala         #Controller that serve data to the front end
│     ├── models                # Model cases created to handle specific data structures for the assignment
│     └── utility               # Utility class for common operation to be executed on the data to be aggregated
├── /test/                      # Tests for the controller and for the defined utility class
├── /ui/                        # Angular front end sources
│     ├── /app/                 # End to end tests folder
│        ├── /_components/   #Several Angualr2 components that show the data aggregation to the user
│            ├── /competitions  # Angualar 2 Component with unit tests defined for it
│            ├── /leaderboard   # Angualar 2 Component with unit tests
│        ├── models             # Data structures for the data received from the back-end
│        ├── services           # API service. Communicates with the back-end to send and receive data
│     ├── enviroments           # Added configurations variables in the environment.ts


### What the app does:
* Allows to upload a CSV file with sport actions
* Allows the user to select the competion
* Showcases the leaderboard for a given competition
* Showcase the matches and results for a given competition

### Extra functions that are not used by the front-end
* Get player based on a team : SportActionUtilities.getTeamPlayers
* Get all players : SportActionUtilities.getPlayers
* Get matches of a given team: SportActionUtilities.GetTeamMatches
* Get all teams in the given file : FrontendAPIController.teams

About

Play Framework with Angular Project. Analysis of football actions to produce relevant stats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published