/Flask-VueJS-Docker-Demo

:gem: A demo of an application with a python flask API, postgres SQL, and a separate front-end built with vue.js.

Primary LanguagePython

licence issue contributors

how to use this template ?

Clone this project:

git clone https://github.com/DurandSacha/Flask-VueJS-Docker-Demo

Run a npm server for vue

npm run serve

go python api

cd api

run flask api server

flask run

flask is used for API branching, while vue.js is useful for separate front-end.

How to use postgres SQL database ?

Change database variable in config.py ( SQLALCHEMY_DATABASE_URI )

initialize database :

python api/manage.py db init

make migration :

python api/manage.py db migrate

update modifications:

python api/manage.py db upgrade

Use docker compose

Docker-compose up