This app is built using flask and JJinja.
It is made using codemy's Youtube Flask Fridays playlist. Youtube
Activate virtual environment.
pip install -r requirements.txt
Note: Create virtual environment first before installing dependencies.
python hello.py
to run website.
All html files are saved in templates directory.
- Run
python createdb.py
to create database - Database is defined in
hello.py
using db.Models() using SQLAlchemy. - If want to create MYSQL database, open up MYSQL database & Apache using XAMPP first before running
mysql_createdb.py
(Uncomment CREATE DATABASE) thencreatedb.py
. You can click onadmin
button in XAMPP to open up PHPMyAdmin.
- Database is saved as
users.db
for SQLite