oleg-agapov / flask-vue-spa

Vue.js SPA served over Flask microframework
MIT License
748 stars 198 forks source link

flask-vue-spa

Vue.js SPA served over Flask microframework

Tutorial on how I build this app: https://medium.com/@oleg.agapov/full-stack-single-page-application-with-vue-js-and-flask-b1e036315532

Build Setup

# install front-end
cd frontend
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production/Flask with minification
npm run build

# install back-end
cd ../backend
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
cd ..

# serve back-end at localhost:5000
FLASK_APP=run.py flask run