Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greyli/greybook
A blog engine built with Python and Flask.
https://github.com/greyli/greybook
Last synced: 11 days ago
JSON representation
A blog engine built with Python and Flask.
- Host: GitHub
- URL: https://github.com/greyli/greybook
- Owner: greyli
- License: mit
- Created: 2023-05-17T00:02:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-23T13:12:51.000Z (3 months ago)
- Last Synced: 2024-12-09T09:49:39.586Z (13 days ago)
- Language: HTML
- Homepage: http://greybook.helloflask.com
- Size: 2.36 MB
- Stars: 23
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Greybook
A blog engine built with Python and Flask. The example application for the book *[Python Web Development with Flask (2nd edition)](https://helloflask.com/en/book/4)* (《[Flask Web 开发实战(第 2 版)](https://helloflask.com/book/4)》).
Demo: http://greybook.helloflask.com
![Screenshot](demo.png)
## Installation
Clone the repo:
```
$ git clone https://github.com/greyli/greybook
$ cd greybook
```Install dependencies with [PDM](https://pdm.fming.dev):
```
$ pdm install
```> [!TIP]
> If you don't have PDM installed, you can create a virtual environment with `venv` and install dependencies with `pip install -r requirements.txt`.To initialize the app, run the `flask init-blog` command:
```
$ pdm run flask init-blog
```If you just want to try it out, generate fake data with `flask lorem` command:
```
$ pdm run flask lorem
```It will create a test account:
* username: `admin`
* password: `greybook`Now you can run the app:
```
$ pdm run flask run
* Running on http://127.0.0.1:5000/
```## License
This project is licensed under the MIT License (see the
[LICENSE](LICENSE) file for details).