Writen with python3
Instructions:
-
Clone this project
-
Open config.py file and change variables SECRET_KEY, DATABASE, etc.
-
Create virtual environment and install dependencies from requirements.txt file:
pip install -r requirements.txt
-
Depending on your DB you will need to install additional dependencies
-
To create a database and tables you will need to run these command lines
-
python startup.py db init
-
python startup.py db migrate
-
python startup.py db upgrade
-
Now you can start website by executing
python startup.py runserver -h 0.0.0.0
-
If you want to access admin panel (which you probably want) you will need to create a row in "users" table. To do that simply write
python startup.py add_user
-
repeat step 4 and go to www.ipaddress:port/login
-
Enjoy your website
Flask provided webserver should not be used in production applications. To have fully functioning website read about Gunicorn and nginx.