GithubHelp home page GithubHelp logo

rzwink / django-fc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.21 MB

Django project supporting Grandview FC. Use app for Django programmers who want to run a basic website for their local soccer/football club. Pulls data dynamically from Teamsnap.

Shell 0.01% Python 2.15% HTML 77.10% CSS 7.67% SCSS 11.59% JavaScript 1.48%

django-fc's Introduction

Django FC

Django FC - Grandview FC Logo

Django project supporting Grandview FC. Use app for Django programmers who want to run a basic website for their local soccer/football club. Pulls data dynamically from Teamsnap.

https://www.grandviewfc.org

The application primarily consists of:

  • Django
  • Bootstrap
  • Python

Installation

  1. This is a python + django application. To get started running locally, you'll need Python3 + Pip (package manager)

    1. Install Python: https://www.python.org/downloads/
    2. Install Pip:
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    python3 get-pip.py
    
    1. Install Pipenv (this is the newer package manager used by this project)
     pip install pipenv
    
    1. Install Virtualenv (this is so you can install packages in a virtualenv rather than have them running globally)
     pip install virtualenv
    
    1. Go to your favorite projects directory and clone this repo
    2. Create a virtualenv and activate it
     python -m venv ./venv/
     . ./venv/bin/activate
    
    1. This application has a handfull of applications that must be available in your PATH. While not required, may cause errors during the next step if not installed. You can try to skip this step and return to it if the following command fails.
      1. tesseract - see .platform/hooks/postdeploy/install_tesseract.sh or google how best to install tesseract on your platform
      2. developer packages - see .ebextenstions/002_packages.config for packages installed in production by default
    2. Install project dependencies
    sudo apt install python3-dev libmysqlclient-dev default-libmysqlclient-dev
    
     pipenv install
    
    1. This project uses pre-commit Black to ensure code formatting standards are adhered. Do not skip this step:
    pre-commit install
    
  2. setup .env by renaming .env.example and adding relevant keys, or receive .env file by contacting rob. The following commands will not work without a valid .env

  3. Initialize a sqlite database

python manage.py migrate
  1. Initialize your database by editing initialize.py to match local credentials you'd like to use
python initialize.py
  1. Start the server
python manage.py runserver
  1. login by accessing https://localhost:8000/ Click Login, enter credentials specified in initialize.py

django-fc's People

Contributors

rzwink avatar

Watchers

 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.