-
Requirements::
Python 3.3+
-
Install sqlite3::
sudo apt-get install sqlite3
-
Install virtualenv (Optional)::
pip install virtualenv
-
Create virtual environment (Optional)::
python3 -m virtualenv venv
-
Activate virtual environment (Optional)::
source /venv/bin/activate
-
Install package requirements::
pip install -r requirements.txt
-
Generate secret key::
import os os.urandom(24)
-
Configure secret key on local_settings.py::
SECRET_KEY = "YOUR SECRET KEY HERE"
-
Create database (from ../login on python cli run)::
from login import create_app, db app = create_app() app.app_context().push() db.create_all(app=create_app())
-
Run flask::
export FLASK_APP=__init__.py run flask