/flask_blog

基于 Flask 和 Bootstrap 的博客

Primary LanguageJavaScript

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

blog_preview

# 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.