flask-svelte-template

Flask Svelte Template

Template for lightweight applications with a Python backend (Flask) and a Svelte frontend

flask-svelte-template

Template for lightweight applications with a Python backend (Flask) and a Svelte frontend

Build Containers

docker-compose --profile dev build
docker-compose --profile prod build

Run Development Server (Front and Backend)

The dev server runs the static frontend dev server on port 9090, and Flask on port 8080.

docker-compose --profile dev up

Build Production Bundle

docker-compose --profile prod up

Example Deployment (Debian, Raspberry Pi)

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

Top categories

Loading Svelte Themes