Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lim-lq/flask-vue-example
The web project structure
https://github.com/lim-lq/flask-vue-example
flask python36 vue
Last synced: 23 days ago
JSON representation
The web project structure
- Host: GitHub
- URL: https://github.com/lim-lq/flask-vue-example
- Owner: lim-lq
- License: mit
- Created: 2017-05-22T16:12:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T15:24:04.000Z (2 months ago)
- Last Synced: 2024-09-14T12:18:18.909Z (about 2 months ago)
- Topics: flask, python36, vue
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-vue-example
> This a web development example.This project includes api service, front-end and task service using
flask, vuejs, celery framework.## Build Setup api
```bash
# install python packages
pip install -r requirements.txt
# init db
python manager.py db init
python manager.py db migrate
python manager.py db upgrade
# update db model
python manager.py db migrate
python manager.py db upgrade
# initial privileges
python manager.py init_privilege
# create superuser
python manager.py create_superuser
# run server
python manager.py runserver -h 127.0.0.1 -p 5000
```## Build vue frontend
```bash
# install dependencies
npm install# serve with hot reload at localhost:8080
npm run dev# build for production with minification
npm run build
```## Run task server
```bash
celery -A celery_tasks.celery_ins worker --loglevel=info
```