Skip to content

Kevinf7/vue-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-flask

Instructions

Vue
1. Go to root folder
2. Install packages
npm install
3. In development
npm run serve
Access site at http://localhost:8080
4. In Production (using Flask server)
npm run build
Flask will access files from /dist folder
Access site at http://localhost:5000

Flask
1. Go to folder /api
2. Create Python virtual environment
virtualenv env
3. Install packages
pip install -r requirements.txt 
4. Run virtual environment
runenv
5. Run Flask
Flask run
6. Go to localhost:5000
You will see the Vue index.html page

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference. "# vue-flask"

About

Flask serving a SPA created in Vue and providing API endpoints - test project only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •