Example application for Python Web Development with Flask (《Flask Web 开发实战》).
Demo: http://greybook.helloflask.com
Clone the repo:
$ git clone https://github.com/greyli/greybook.git
$ cd greybook
Create & activate virtual env then install dependency:
with venv + pip:
$ python3 -m venv .venv # use `python ...` on Windows
$ source .venv/bin/activate # use `.venv\Scripts\activate` on Windows
$ pip install -r requirements.txt
or with PDM (you need to install PDM first):
$ pdm install
$ source .venv/bin/activate # use `.venv\Scripts\activate` on Windows
Generate fake data then run the application:
$ flask lorem
$ flask run
* Running on http://127.0.0.1:5000/
Test account:
- username:
admin
- password:
greybook
This project is licensed under the MIT License (see the LICENSE file for details).