$ mysql
mysql> drop database if exists traildb;
mysql> create database traildb;
mysql> source traildb.sql;
Edit db_credentials.py.sample and change the database name, username, password and server (to localhost) so that your database can be used. Then save the file as db_credentials.py
virtualenv venv
. ./venv/bin/activate
pip install -r requirements.txt
Make sure:
- MySQL/MariaDB is running
- You have done all the 3 steps above.
Now, run
./activate.sh
This will activate the virtual environment as well as run the application. Now you can go to the browser to use the application!
The default URL is as https://localhost:5000
NOTE Your browser will probably show a warning about the https certificate. You can safely ignore it as all your data will be local.
This is what it looks like:
