This project is built using the Flask web framework. It runs on Python 2.7 or 3.4+.
-
To run the app locally, first clone this repository and
cd
into it. -
Create a new virtual environment.
-
If using vanilla virtualenv:
virtualenv venv source venv/bin/activate
-
-
Install the requirements.
pip install -r requirements.txt
-
Copy the
.env_example
file tosecrets.sh
, and edit it to include:- your [TWILIO_AUTH_TOKEN]
- your [Twilio API key]
- your [TWILIO_NUMBER]
- your [TWILIO_ACCOUNT_SID]
- your [SECRET_KEY]
- your [DATABASE_URL]
-
Run
source secrets.sh
to apply the environment variables -
Run the postgresql server
-
Create the gigaware database in your local enviornment
- run
psql gigaware
to verify that the db doesn't already exist createdb gigaware
db.create_all()
- run
-
Run
python manage.py db upgrade
to build migration models for the db andpython manage.py db downgrade
to drop the tables -
Run
python manage.py runserver
to start the app