Giter VIP home page Giter VIP logo

cfb-score-picker's Introduction

CFB Score Picker

This website is based on a competition my Dad and his friends have been doing for a very long time. The premise is that you pick a college football team and then every week you and your friends pick scores for that week's game. You then get points for picking the winner, the closest scores, and the closest spreads. I originally set this site up to only work for UNC football, but am currently working on updating to be able to support all teams.

To run the project locally clone the repo, download Docker, and navigate to the root folder. Run the following to make the migrations and start the server:

ballin2much@PC:~/CFB-Score-Picker$ sudo docker-compose run web python manage.py makemigrations
ballin2much@PC:~/CFB-Score-Picker$ sudo docker-compose up

If you are on WSL2 make sure to clone the repo into the WSL subsystem, otherwise you will have CHOWN issues with the Postgres Docker image.

If you need to create an admin user:

ballin2much@PC:~/CFB-Score-Picker$ sudo docker-compose run web python manage.py createsuperuser

Now you need to run a custom admin command in order to populate the database with team and game data from ESPN. To do so run the following

ballin2much@PC:~/CFB-Score-Picker$ sudo docker-compose run web python manage.py getteams
ballin2much@PC:~/CFB-Score-Picker$ sudo docker-compose run web python manage.py getschedule 2021

The first line populates the database with all FBS and FCS teams, while the second command pulls every game that involves an FCS team.

You will also need to create a .env file with a value for SECRET_KEY.

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.