/taskmaster

:thought_balloon: Simple Todolist with Flask

Primary LanguagePython

Task Master : Flask CRUD

📝 Simple Todolist built with Flask based on a tutorial by Jake Rieger.


Synopsis

Nothing major. Just a basic CRUD app.

Notes

Prep Environment

sudo apt install python3-pip
sudo pip3 install virtualenv #Installdir for local user was not in path by default (lazy to add :D)

Prep project folder

cd ~/dev
mkdir taskmaster && cd taskmaster

Prep and activate virtual env for our project folder

virtualenv env
source env/bin/activate

Install project dependencies

pip3 install flask flask-sqlalchemy

Create the DB

python3
from app import db

db.create_all()

Run the app

python3 app.py # Boots up Flask dev-server

Host in Heroku

heroku login

pip3 install gunicorn
pip3 freeze > requirements.txt

git init && git add . && git commit -m "Initial commit"

heroku create zyten-taskmaster
echo web: gunicorn app:app > Procfile

git add . && git commit -m "Add Procfile for Heroku"
git push heroku master