An open API service indexing awesome lists of open source software.

https://github.com/yeshan333/flask_blog

基于 Flask 和 Bootstrap 的博客
https://github.com/yeshan333/flask_blog

bootstrap flask virtualenv

Last synced: 2 months ago
JSON representation

基于 Flask 和 Bootstrap 的博客

Awesome Lists containing this project

README

          

# 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

```shell
# 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

```bash
pip install pipenv
pipenv install # install dependencies
pipenv shell # activate virtual environment
flask run # start server
```

![blog_preview](blog_preview.png)

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