https://github.com/honmaple/maple-blog
a blog website based on flask
https://github.com/honmaple/maple-blog
Last synced: about 1 year ago
JSON representation
a blog website based on flask
- Host: GitHub
- URL: https://github.com/honmaple/maple-blog
- Owner: honmaple
- License: gpl-3.0
- Created: 2015-11-21T16:19:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:18:33.000Z (over 3 years ago)
- Last Synced: 2024-04-16T01:50:25.669Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 20.1 MB
- Stars: 117
- Watchers: 12
- Forks: 49
- Open Issues: 11
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* maple-blog
[[license][https://img.shields.io/badge/license-GPL3.0-blue.svg]]
[[https://www.python.org/download/releases/3.0/][https://img.shields.io/badge/python-3.5-green.svg]]
This is my own blog website by flask
You can have a look [[https://honmaple.com][here]]
* How to use
** Install necessary package
#+BEGIN_SRC python
pip install -r requirements.txt
#+END_SRC
** Configure
remember to modify *config.py*
#+BEGIN_EXAMPLE
emacs config.py
#+END_EXAMPLE
** Initialization sql
#+BEGIN_SRC bash
$ python runserver.py db init
$ python runserver.py db migrate
$ python runserver.py db upgrade
#+END_SRC
or
#+BEGIN_SRC bash
$ python runserver.py db initdb
#+END_SRC
** Create superuser
#+BEGIN_SRC shell
python runserver.py create-user
#+END_SRC
** Run
#+BEGIN_SRC shell
python runserver.py
#+END_SRC