Flask Blog
attack on Flask, support article search
dependencies
- Flask
- flask-login
- flask-mail
- flask-wtf
- flask-moment
- flask-sqlalchemy
- bootstrap-flask
- flask-whooshee
- Font Awesome
- Jquery
- Bootstrap
- Bootswatch
local preview
requirements
- Python 3.6/3.5
quick start
recommend: use virtualenv to manage python env
# 1、create virtual environment
virtualenv venv --python=python3.6
# 2、activate virtual environment
source venv/bin/activate
# 3、install dependencies
pip install -r requirements.txt
# start server
flask run
or use pipenv
pip install pipenv
pipenv install # install dependencies
pipenv shell # activate virtual environment
flask run # start server
# flask
Commands:
db Perform database migrations.
forge mock data
init Building Bluelog, just for you.
initdb craete data tables
routes Show the routes for the app.
run Runs a development server.
shell Runs a shell in the app context.