Skip to content

Svtter/greybook

 
 

Repository files navigation

Greybook

A blog engine built with Python and Flask. The example application for the book Python Web Development with Flask (2nd edition) (《Flask Web 开发实战(第 2 版)》).

Demo: http://greybook.helloflask.com

Screenshot

Installation

Clone the repo:

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

Install dependencies with PDM:

$ 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 file for details).

About

A blog engine built with Python and Flask.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 51.1%
  • JavaScript 29.7%
  • Python 15.3%
  • CSS 3.2%
  • PHP 0.5%
  • Dockerfile 0.1%
  • Other 0.1%