Skip to content

mzrzvi/flask-template

Repository files navigation

flask-template

Runtime

Ensure you have the following installed locally:

  • python-3.6.2

Setup

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.

Local

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

Development

Export the ENVIRONMENT environment variable:

export ENVIRONMENT=DEVELOPMENT

Then run the server as above:

python3 run.py

The server will run on port 5000.

Production

Export the ENVIRONMENT environment variable:

export ENVIRONMENT=PRODUCTION

Then run the server as above:

python3 run.py

The server will run on port 80.

Known Issues

  • Facebook OAuth is done manually/with raw requests for now. Would like to migrate functionality to a trusted and maintained package.

Todos

About

Flask app template we use to bootstrap projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published