Template for lightweight applications with a Python backend (Flask) and a Svelte frontend
docker-compose --profile dev build
docker-compose --profile prod build
The dev server runs the static frontend dev server on port 9090
, and Flask on port 8080
.
docker-compose --profile dev up
docker-compose --profile prod up
scp -r dist/app pi@HOSTNAME:/home/pi/
ssh pi@HOSTNAME
cd ./app
chmod +x install.sh
sudo ./install.sh
Note that the app.service
file and install.sh
are set up for deploying on a Raspberry Pi. Every other part of the dist/
output is platform-agnostic