Dragonboat Rostering App
You should have the following installed:
Python 2.7(Check this with python -v
)
Virtualenv
Pip
Git
SSH key is setup
-
In the directory of your choice
mkdir felist
-
CD into your directory and run the command
virtualenv venv
to create your own virutal environment.
Everytime you work on "Felist" make sure you activate your virtual environment by. venv/bin/activate
orvenv\scripts\activate
for Cool PC Users
Deactivate it withdeactivate
. -
Clone the repository into the Felist directory
git@github.com:alexsclim/Felist.git
-
CD into the app directory and then run the command
pip install -r requirements.txt
This will install Flask and all the other dependencies for the project. -
Make sure you are running MySQL locally. Then go into the init.py file and replace the stars in the line
app.config['MYSQL_DATABASE_PASSWORD'] = '******'
with your MySQL password for the username 'root'. -
Once you have your dependencies and are hosting MySQL locally, run the command in your root folder
./run.py
and view the project in your local browser under port 5000. If it says you do not have permission, use 'chmod a+x run.py' to change permissions.