프로젝트
GitHub에서 보기
realpython/flask-by-example
realpython/flask-by-example has 683 GitHub stars and 285 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-19 11:14 UTC. Last push 2020-07-25.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
flask, heroku, environment variables, sqlalchemy, flask-migrate, redis
데이터README.md
OriginalFlask by Example
Blog Posts
This is the repo for the Real Python blog series, Flask by Example -
- Part One: Set up a local development environment and then deploy both a staging and a production environment on Heroku.
- Part Two: Set up a PostgreSQL database along with SQLAlchemy and Alembic to handle migrations.
- Part Three: Add in the back-end logic to scrape and then process the word counts from a webpage using the requests, BeautifulSoup, and Natural Language Toolkit (NLTK) libraries.
- Part Four: Implement a Redis task queue to handle the text processing.
- Part Five: Set up Angular on the front-end to continuously poll the back-end to see if the request is done processing.
- Part Six: Push to the staging server on Heroku - setting up Redis and detailing how to run two processes (web and worker) on a single Dyno.
- Part Seven: Update the front-end to make it more user-friendly.
- Part Eight: Add the D3 library into the mix to graph a frequency distribution and histogram.
Check out http://realpython.com
Quick Start
First Steps
$ pyvenv-3.5 env
$ source env/bin/activate
$ pip install -r requirements.txt
Set up Migrations
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py db upgrade
Run
Run each in a different terminal window...
# redis
$ redis server
# worker process
$ python worker.py
# the app
$ python app.py