2016 Skunkworks Project: Using Machine Learning to Learn from athlete-related data
Getting Started With the Environment:
- Clone the repository..
- Ensure that you have
- To install pip, run
sudo easy_install pip.
- Install virtualenv. This is so that we can have mulitple versions of Python/Python libraries. Virtualenv lets you have many different installations for python, useful if you use it for other projects. Run
sudo easy_install virtualenv.
- Set up the backend by creating a virtual environment and then installing the backend requirements with
virtualenv venv source venv/bin/activate pip install -r requirements.txt
requirements.txt may not be completely up-to-date with the latest python library dependencies. If you get an error saying a certain module couldn't be found, run
pip install x where x is the missing module.
For the front end, use npm to install webpack and the dependencies as listed in
npm install -g webpack and then
To bundle up the JS files, run
webpack. This will create a bundled front-end file
webpack --watch to make changes to the front-end without having to restart the backend.
Run the backend:
Activate the virtualenv with
source venv/bin/activate. Then run
python app.py and go to the localhost the app is listening on.
- Make changes to the backend by editing
- Make changes to the front-end by editing the JS files and recompiling them with