Skip to content

chheunpheara/flask-sample-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blog - Flask Tutorial

A sample blog application to learn Flask + SqlAlchemy

Prerequisite

Python3.5+

Virtualenv

You are recommended to use virtualenv to manage python version for any application

Installation

pip install -r requirements.txt

Run Migration

Change directory to Blog and run:

flask db init

flask db migrate -m 'Your commit message'

flask db upgrade

Read more about Flask-Migrate at; https://flask-migrate.readthedocs.io/en/latest/

Run the application

Make sure you are still at Blog

export FLASK_APP=app
export FLASK_ENV=development
flask run

About

For flask and SqlAlchemy self-learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published