Skip to content

《Flask Web开发实战》Meta仓库(源码、勘误、FAQ等)

License

Notifications You must be signed in to change notification settings

bapleliu/helloflask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloFlask

A collection of Flask example applications. Repository for Hello, Flask!.

Demos

There are 9 applications in demos directory:

  • demos/hello Basic Flask application
  • demos/http Flask with HTTP
  • demos/template Templating with Jinja2
  • demos/form Form handing with Flask-WTF (WTForms)
  • demos/database Database with Flask-SQLAlchemy
  • demos/email Send email with Flask-Mail and SendGrid
  • demos/assets Assets optimize with Flask-Assets
  • demos/cache Cache with Flask-Caching
  • and more...

Run the demo application

Preparation work:

$ git clone https://github.com/greyli/helloflask.git
$ cd helloflask
$ pipenv install
$ pipenv shell

Run:

$ cd demos/hello
$ flask run

Now open http://localhost:5000.

You can run other application by replace demos/hello with proper path.

For Chinese Readers of My Flask Book

这个仓库包含《Flask Web开发实战》第1~6章以及13章的示例程序源码。示例程序和章节的对应情况如下:

  • demos/hello 对应第1章《初识Flask》
  • demos/http 对应第2章《Flask与HTTP》
  • demos/template 对应第3章《模板》
  • demos/form 对应第4章《表单》
  • demos/database 对应第5章《数据库》
  • demos/email 对应第6章《电子邮件》
  • demos/assets 对应第13章《性能优化》
  • demos/cache 对应第13章《性能优化》

License

This project is licensed under the MIT License (see the LICENSE file for details).

About

《Flask Web开发实战》Meta仓库(源码、勘误、FAQ等)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published