Skip to content

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

Notifications You must be signed in to change notification settings

MarkTLite/flask-blog

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published