https://github.com/filipimiparebine/premier-league
Premier League football simulation web app. Select teams, play week matches one by one or simulate them all. Scoring algorithm is based on prediction percentage and past performance.
https://github.com/filipimiparebine/premier-league
design-patterns docker github-actions-ci laravel mysql nextjs phpunit react typescript
Last synced: 4 months ago
JSON representation
Premier League football simulation web app. Select teams, play week matches one by one or simulate them all. Scoring algorithm is based on prediction percentage and past performance.
- Host: GitHub
- URL: https://github.com/filipimiparebine/premier-league
- Owner: filipimiparebine
- Created: 2024-10-02T08:10:20.000Z (about 1 year ago)
- Default Branch: develop
- Last Pushed: 2024-12-24T09:31:14.000Z (12 months ago)
- Last Synced: 2025-05-16T06:35:56.981Z (7 months ago)
- Topics: design-patterns, docker, github-actions-ci, laravel, mysql, nextjs, phpunit, react, typescript
- Language: PHP
- Homepage:
- Size: 1.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Premier League Simulation
This project is a Premier League football simulation application built with Laravel 10 (backend) and Next.js (frontend).

## Features
- Team selection
- League table generation
- Week fixtures (week matches to be played)
- Match simulation
- Match prediction
- Edit match result
- Simulate all
- Unit and feature testing with PHPUnit
- Dockerized
- Github CI Pipelines
## Setup
1. Clone the repository:
```bash
git clone https://github.com/filipimiparebine/premier-league-be.git
cd premier-league-be
```
1. Run project:
```bash
./run.sh
```
3. Access the application at `http://localhost:3000`
## Running Tests
To run the backend tests:
```bash
docker-compose exec premier-league-be vendor/bin/phpunit
```
## Seeding the database
Seeding the database is executed once on docker compose up, but you can also use:
```bash
docker compose exec premier-league-be php artisan db:seed --class=DatabaseSeeder
```
## CI/CD
This project uses GitHub Actions for continuous integration. The workflow is defined in `.github/workflows/ci.yml`.
## License
This project is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).