GithubHelp home page GithubHelp logo

bhushan / league-simulator Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 621 KB

In this project, a simulation is created in which there will be a group of football teams and the simulation will show match results and the league table.

License: MIT License

PHP 92.22% Vue 6.86% HTML 0.92%

league-simulator's Introduction

Premier League Simulator

In this project, a simulation is created in which there will be a group of football teams and the simulation will show match results and the league table. Following are the functionalities covered:

  • Simulation on clicking Next week button
  • Simulation on clicking Play All
  • Prediction for each team from 4th week (Configurable)
  • Edit for match results for each week
  • Reset of data
  • PHPUnit tests
  • Responsiveness application
  • Implementation of translation for displaying data

For more information, check docs/Information.md

Prerequisites

  • PHP >= 7.2
  • PHP Extension - BCMath
  • PHP Extension - Ctype
  • PHP Extension - Fileinfo
  • PHP Extension - JSON
  • PHP Extension - Mbstring
  • PHP Extension - OpenSSL
  • PHP Extension - PDO
  • PHP Extension - Tokenizer
  • PHP Extension - XML
  • MySQL
  • GIT
  • Composer
  • NPM

How to install

  • Do the git clone of the project
git clone https://github.com/b-gaykawad/league-simulator.git
  • Navigate inside project directory
cd league-simulator
  • Install composer dependencies
composer install
  • Install NPM dependencies
npm install
  • Create environment file by copying .env.example file to .env

  • Generate App Key for the project

php artisan key:generate
  • Change following configurations from .env file

    • DB_DATABASE=
    • DB_USERNAME=
    • DB_PASSWORD=
  • Now create the database with the same name used in DB_DATABASE

  • Migrate database and seed default data

php artisan migrate:fresh –seed

How to run application

  • Run below command from the project root directory, and run the provided url in browser
php artisan serve

How to execute tests

  • Run the below command from the project root directory
./vendor/bin/phpunit

Few useful commands

  • Compile the assets
npm run <env>

Note:

a. env can be prod or dev

b. prod generates the minified assets

  • Watch changes in the assets
npm run watch
  • Stop the server
CTRL + C

league-simulator's People

Contributors

ee-bhushan avatar

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.