https://github.com/greyli/greybooks
https://github.com/greyli/greybooks
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/greyli/greybooks
- Owner: greyli
- License: mit
- Created: 2023-11-05T07:31:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-05T15:11:21.000Z (over 1 year ago)
- Last Synced: 2025-03-24T05:44:28.145Z (about 2 months ago)
- Language: HTML
- Size: 1.94 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Greybook
> Example application for *[Python Web Development with Flask](https://helloflask.com/en/book/1)* (《[Flask Web 开发实战](https://helloflask.com/book/4)》).
Demo: http://greybook.helloflask.com

## Installation
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](https://pdm.fming.dev/latest/#installation) first):
```
$ pdm install
$ source .venv/bin/activate # use `.venv\Scripts\activate` on Windows
```Generate fake data then run the application:
```
$ flask fake
$ flask run
* Running on http://127.0.0.1:5000/
```Test account:
* username: `admin`
* password: `greybook`## License
This project is licensed under the MIT License (see the
[LICENSE](LICENSE) file for details).