Code Monkey home page Code Monkey logo

helloflask's Introduction

HelloFlask

这里是《Flask Web开发实战》(Python Web Development with Flask)的Meta仓库,包含第1-6章、13章的示例程序源码和勘误等信息。访问本书主页查看本书的资源索引、目录、购买链接等详细信息。

勘误 & FAQ & 可改进实现 & 版本更新记录

反馈 & 讨论 & 评价

如果你发现了书中的错误、运行实例程序出错或是有其他的问题,可以创建Issue或是在 HelloFlask 论坛发帖进行反馈。

欢迎在本书的豆瓣图书页面、对应的知乎问题或是电商网站撰写评价。

运行示例程序

克隆仓库:

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

安装依赖包:

$ pipenv install --dev --pypi-mirror https://mirrors.aliyun.com/pypi/simple
$ pipenv shell

如果你还没有安装Pipenv,那么可以在运行pipenv命令前通过pip安装(pip install pipenv)。

运行实例程序:

$ cd demos/hello
$ flask run

现在使用浏览器打开http://localhost:5000

你可以通过切换到不同的示例程序目录来运行不同章节的示例程序。比如,下面的命令将会运行第4章的示例程序:

$ cd demos/form
$ flask run

在书中,每一章的开头都会包含运行实例程序的提示。

相关项目

  • SayHello: 本书第7章示例程序,一个简单的留言板程序。
  • Bluelog:本书第8章示例程序,一个个人博客。
  • Albumy:本书第9章示例程序,多人图片社交网站。
  • Todoism:本书第10章示例程序,实现了Web API和i18n支持的Todo程序。
  • CatChat:本书第11章示例程序,基于WebSocket实现,并提供了社交账户登录功能的聊天室。
  • Flask-Share:本书第15章的Flask扩展示例。

License

该项目基于MIT协议授权,具体可以参考LICENSE文件。

helloflask's People

Contributors

greyli avatar imyufanli avatar meizhaohui avatar vimiix avatar snailzsj avatar angelliang avatar hjlarry avatar blankerl avatar bbbbx avatar hunter-ji avatar jpch89 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.