- python 3.9
- flask
- html
- css
mkdir dirname
python -m venv env
cd env/Scripts & activate
git clone https://github.com/narendra101/todo.git
pip install -r requirements.txt
create database todo_app;
use todo_app
create table user(first_name varchar(50) not null, last_name varchar(50) not null, username varchar(80) not null primary key, password varchar(50));
create table todo(title varchar(50) not null, description text not null, uname varchar(80) not null, foreign key(uname) references user(username) on delete cascade);
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = 'your_mysql_password'
app.config['MYSQL_DB'] = 'todo_app'
app.secret_key = "secret key"
pip install -r requirements
python app.py