最新完整代碼
及使用方式本系列的最新代碼及使用方式將持續更新到: http://www.madmalls.com/blog/post/latest-code/vue
$ git clone https://github.com/wangy8961/flask-vuejs-madblog.git
Open a new terminal:python
$ cd back-end $ python -m venv venv $ source venv/bin/activate (venv)$ pip install -r requirements.txt # Flask-Migrate create database (venv)$ flask db upgrade # create back-end/.env file, like this FLASK_APP=madblog.py FLASK_DEBUG=1 (venv)$ flask run
瀏覽器訪問: http://localhost:5000/api/ping
linux
Open a new terminal:ios
$ cd front-end $ npm install $ npm run dev
瀏覽器訪問: http://localhost:8080
git