Skip to content

exemplaric architecture with jwt as auth method, flask and vue using docker

License

Notifications You must be signed in to change notification settings

scopalaffairs/vue_flask_auth_blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask/Vue Boilerplate Setup

with POSTGRESQL

bundled via Docker Compose

exposed via nginx


Docker

Run docker-compose up in project root.


Flask backend API

Development server

Run python app.py to start development server on port 8080 to watch files and restart on update.

Use from docker container

Clone project on your remote machine (needs to have docker daemon installed), then build image (docker build -t flask-backend .) and finally run the image by using docker run -p 8080:8080 -v /HOST/PATH/TO/BACKEND/FOLDER:/app flask-backend.


Vue frontend

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compile and minify for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your end-to-end tests

npm run test:e2e

Run your unit tests

npm run test:unit