vhugo / flaskr-intro

:mailbox_with_no_mail: Mini blog application following the Flask tutorial :mailbox_with_no_mail:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask

Codacy Badge BCH compliance Build Status Coverage Status Known Vulnerabilities License Contributions welcome

Flaskr

Flaskr is a mini blog application that you are building following the official Flask tutorial. The app essentially, will do the following things:

  • Let the user sign in and out with credentials specified in the configuration. Only one user is supported.
  • When the user is logged in, they can add new entries to the page consisting of a text-only title and some HTML for the text. This HTML is not sanitized because we trust the user here.
  • The index page shows all entries so far in reverse chronological order (newest on top) and the user can add new ones from there if logged in.

There is another great tutorial for flask and tdd at https://realpython.com/

To run the application, open up a command prompt (on Windows) and type in the following:

  1. set FLASK_APP=server.py
  2. set FLASK_DEBUG=1
  3. flask initdb
  4. flask run

To test the application, from the root folder run: python test_flaskr.py

About

:mailbox_with_no_mail: Mini blog application following the Flask tutorial :mailbox_with_no_mail:

License:MIT License


Languages

Language:Python 58.6%Language:HTML 38.6%Language:JavaScript 2.9%