Skip to content

A blog web app made with python Flask with SQLAlchemy, Jinja 2, and Bootstrap 5.3

Notifications You must be signed in to change notification settings

Adrian-Fang/blog-flask-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A sample Blog application made with Python Flask v2.3.3, Jinja2 v3.1.2 and Bootstrap v5.3.2

Using Bootstrap for relieving pain writing css. A few practice borrowed from Node.js + EJS stack, such as:

  • using different layouts for different pages
  • introduced controllers (that of MVC) to take over request processing and response sending

How to init database and run app

Activate virtual env

source ./venv/bin/activate

Run application in debug mode

flask init-db
flask run --debug

Features

Links

Markdown Cheatsheet Example of Flask App

How to run tests &

Can't just run pytest, have to run pytest as a module in python (which adds the current directory to sys.path). Read More

python -m pytest -vv

or

coverage run -m pytest
coverage report

Database Stuff

About

A blog web app made with python Flask with SQLAlchemy, Jinja 2, and Bootstrap 5.3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages