Skip to content
Vue.js SPA served over Flask microframework
JavaScript Vue Python HTML
Branch: master
Clone or download
Latest commit c8b63c2 Jun 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backend Update requirements.txt Jun 3, 2019
dist Complete code Oct 18, 2017
frontend Update package.json Jun 3, 2019
.gitignore Proxying Front-end Dec 6, 2017
LICENSE Initial commit Oct 18, 2017
README.md readme changes Oct 18, 2017
run.py Proxying Front-end Dec 6, 2017

README.md

flask-vue-spa

Vue.js SPA served over Flask microframework

  • Python: 3.6.3
  • Vue.js: 2.5.2
  • vue-router: 3.0.1
  • axios: 0.16.2

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
You can’t perform that action at this time.