Ensure you have the following installed locally:
python-3.6.2
Create a virtualenv
via the regular cli or mkvirtualenv
. (Find it here)
Install requirements by running:
pip install -r requirements.txt
Fill out all config variables in app/config.py
.
Replace lol
with meaningful, secure values.
Replace the sqlite://*.db
files with your actual database URI's.
To start server locally, execute:
python3 run.py
The app will assume you're running local configurations if you haven't set your ENVIRONMENT
variable
Export the ENVIRONMENT
environment variable:
export ENVIRONMENT=DEVELOPMENT
Then run the server as above:
python3 run.py
The server will run on port 5000
.
Export the ENVIRONMENT
environment variable:
export ENVIRONMENT=PRODUCTION
Then run the server as above:
python3 run.py
The server will run on port 80
.
- Facebook OAuth is done manually/with raw requests for now. Would like to migrate functionality to a trusted and maintained package.
- Migrate OAuth setup to Flask-Dance