https://github.com/lh00000000/vue-flask-template
template for a vuejs frontend with a flask backend
https://github.com/lh00000000/vue-flask-template
Last synced: about 2 months ago
JSON representation
template for a vuejs frontend with a flask backend
- Host: GitHub
- URL: https://github.com/lh00000000/vue-flask-template
- Owner: lh00000000
- Created: 2016-11-02T21:48:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-15T20:22:22.000Z (over 8 years ago)
- Last Synced: 2025-03-29T06:20:12.486Z (2 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 22
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### frontend
- vuex : placeholders structured after https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart
- vue-resource : client/src/api/api.js for details
- semantic ui : as script tags because i'm too lazy to rebuild it all the time#### backend
- docker : there's a dockerfile in there
- aws elasticbeanstalk : there's a Dockerrun.aws.json in there##### developing
// start up the front-end
cd client
npm install // only do this for the first time
npm run dev // start up nice hot-reloading frontend. all hail vue-cli. more (better) info in client/README.md// open another terminal tab and start up the backend
cd server
python app.py // in the front-end, hit localhost:8000.##### deploying
cd client
npm run build // should put all the goodies into server/static and server/templatecd ../server
python app.py // just run it on localhost:8000
// OR
docker build -t COOL_APP . ; docker run -p 8000:8000 COOL_APP; // run it locally with docker
// OR
// zip up the contents and upload it to AWS ElasticBeanstalk (I can't use eb-cli because i use python 3 :'( )