Giter Club home page Giter Club logo

footyapp's Introduction

footyapp

A web app for managing a 5 a side footy team.

Select the players using the checkboxes and it should output a balanced team for each side.

Coded using Python, HTML and Flask using grayscale bootstrap template

You can test this by installing this docker image and cloning this repo to replace the contents of the /app folder

tiangolo/meinheld-gunicorn-flask

docker pull tiangolo/meinheld-gunicorn-flask
docker run -t -i -e WEB_CONCURRENCY="1" -p 80:80 tiangolo/meinheld-gunicorn-flask
docker exec -it flask /bin/bash
rm -rf /app
mkdir app
cd app
git clone https://github.com/bignellrp/footyapp.git .
python3 services/generate_tokens.py > services/tokens.json
pip3 install -r requirements.txt

or if you're using Docker on Unraid add these parameters to the "Advanced View" of the add container page.

Name:flaskpro
Repository: tiangolo/meinheld-gunicorn-flask
Extra Parameters: -e WEB_CONCURRENCY="1" -e PYTHONUNBUFFERED="1"
Post Arguments: ;sleep 2;docker start flaskpro;sleep 2;docker exec flaskpro bash -c "sleep 5;rm -rf /app/*;cd /app;git clone https://github.com/bignellrp/footyapp.git .;python3 services/generate_tokens.py > /tokens/tokens.json;pip3 install -r requirements.txt";docker restart flaskpro
Tokens(Custom Folder): Container Path: /tokens

This branch adds google sheets support to have the player list generated from a google sheet. Submit allows the user to push the results back to google sheets.

The score page allows the user to update the score from that weeks game.

To test the google sheet function you need to follow this guide to work with the google sheets api. For this you need to have the credentials (keys) json. Save the keys.json to the services folder.

If you prefer not to use google for the data checkout the static branch Note the static branch is now a few versions behind the latest.

In the latest version of the app a Discord helper bot is included that is integrated with the Flask webapp.

A guide for creating the bot can be found here

Save the token in the tokens.json file in the services folder.

footyapp's People

Contributors

bignellrp avatar jdevries3133 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.