- Create python virtual environment for Flask and other run time environment by
virtualenv environment --no-site-packages
. If flask has already been installed, or you are okay with flask being installed in the system, please ignore this step. - Activate the environment by
source environment/bin/activate
; deactivate bydeactivate
. - Install Flask by
pip install flask
. - Install the database by either running the function in
dao.py
(line #16
), or build the table by yourself (the table structure has been inschema.sql
). - Start server by
python flaskr_view_controller.py
. - To delete the temporary run time environment, simply delete
/environment
folder.
- There are already 6 users, from
test1@test.com
totest6@test.com
with all same password123456
. - There are already 2 live sessions in the database, belongs to
test1
user andtest4
user.