MarkTLite / flask-blog

A blog application done to apply core concepts as learned from the official flask documentation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flaskr Blog

codecov Test status Build Status

A blog application done to apply core concepts as learned from the official flask documentation. It involved:

  • REST API (Users are able to register, log in, create posts, and edit or delete their own posts.)
  • Authentication, registering blueprints, sessions and cookies, protected routes.
  • SQLite database for users and posts
  • Template views
  • Tests
  • Deployment or packaging and installing the application on other computers.
Index Create post

Link:

You can register and checkout the blog -> here

Installing the Project locally

Use pip to install the project in the virtual environment.

pip install -e .

Running the app locally

Initialise the db

flask --app flaskr init-db

then run

flask --app flaskr run

Deployment

The blog is deployed using heroku pipelines.

First deploy to staging for testing

heroku push staging main

then when its approved, promote to production.

heroku pipelines:promote --remote prod

Tests

Install pytest and coverage then:

coverage run -m pytest && coverage report

About

A blog application done to apply core concepts as learned from the official flask documentation.


Languages

Language:Python 73.0%Language:HTML 17.8%Language:CSS 9.1%Language:Procfile 0.2%