Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoranpandovski/flaskr-intro
:mailbox_with_no_mail: Mini blog application following the Flask tutorial :mailbox_with_no_mail:
https://github.com/zoranpandovski/flaskr-intro
flask python sqlalchemy tdd
Last synced: about 1 month ago
JSON representation
:mailbox_with_no_mail: Mini blog application following the Flask tutorial :mailbox_with_no_mail:
- Host: GitHub
- URL: https://github.com/zoranpandovski/flaskr-intro
- Owner: ZoranPandovski
- License: mit
- Created: 2017-10-25T22:16:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-03T02:05:51.000Z (2 months ago)
- Last Synced: 2024-12-02T21:51:23.526Z (about 1 month ago)
- Topics: flask, python, sqlalchemy, tdd
- Language: Python
- Homepage:
- Size: 233 KB
- Stars: 6
- Watchers: 3
- Forks: 11
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![Build Status](https://img.shields.io/travis/ZoranPandovski/flaskr-intro/master.svg?logo=travis)](https://travis-ci.org/ZoranPandovski/flaskr-intro)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/233b50af58204263b7f7424f660d02ff)](https://app.codacy.com/app/ZoranPandovski/flaskr-intro?utm_source=github.com&utm_medium=referral&utm_content=ZoranPandovski/flaskr-intro&utm_campaign=badger)
[![BCH compliance](https://bettercodehub.com/edge/badge/ZoranPandovski/flaskr-intro?branch=master)](https://bettercodehub.com/)
[![Coverage Status](https://coveralls.io/repos/github/ZoranPandovski/flaskr-intro/badge.svg?branch=master)](https://coveralls.io/github/ZoranPandovski/flaskr-intro?branch=master)
[![Known Vulnerabilities](https://snyk.io/test/github/ZoranPandovski/flaskr-intro/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/ZoranPandovski/flaskr-intro?targetFile=requirements.txt)
[![License](https://img.shields.io/badge/license-MIT%20License-brightgreen.svg)](https://opensource.org/licenses/MIT)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/ZoranPandovski/flaskr-intro/issues)# Flaskr
Flaskr is a mini blog application that you are building following the official [Flask tutorial](http://flask.pocoo.org/docs/0.12/tutorial/introduction/). 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`