- Create virtual environment and install dependencies
poetry install
- Install node packages
yarn
- Run webpack JS bundler
yarn js-watch
- Run webpack CSS bundler
yarn css-watch
- Rename
project.env
to.env
- Up docker container with database
docker-compose up -d db
- Apply migrations
flask db upgrade
- Run project in the vs-code debugger
F5
- To minify static files run
yarn js
andyarn css
orsh build_static.sh
- Build docker containers
docker-compose build
- Run docker containers
docker-compose up -d
To set up auto deployment CI/CD you need to set following variables in the Actions secrets and variables page of repository settings
DOCKERHUB_TOKEN
- hub.docker.com api token
DOCKERHUB_USERNAME
- hub.docker.com username
SSH_HOST_IP_PROD
- VPS IP
SSH_KEY
- VPS ssh key
SSH_USER
- VPS user