Create virtual environment and activate it.
Linux/mac:
python -m venv durakenv
source durakenv/bin/activate
pip install -r requirements.txt
Windows:
python -m venv durakenv
call durakenv/Scripts/activate.bat
pip install -r requirements.txt
from run import app
from website import db
from website.models import User
with app.app_context():
db.create_all()
Copy the website/.env.example
file to website/.env
.
Enter the correct information for your system:
SECRET_KEY=<your secret key>
SQLALCHEMY_DATABASE_URI=<location of the database>
EMAIL_USER=<app gmail account>
EMAIL_PASS=<app gmail password>
python run.py
Visit the application at 127.0.0.1:5000 in your browser.