A simple demo of a local-first todo application (with auth). The front-end is a Solid.js app that can be served as a PWA separately and the backend is a Gleam-based API using patterns found in something like Rust's Axum instead of the normal Wisp pattern of returning responses straight.
- Copy the environment variables and make any adjustment you want to make
cp .env.example .env
Follow any of the steps below to get it running:
To deploy the frontend separately as a Progressive Web App (PWA) that can be installed on devices for an offline experience, point your hosting service at the ui
folder and use the included api.Dockerfile
to deploy the API.
To serve the Solid.js and API from the same server, you can use the included Dockerfile (will build and serve both) or run:
pnpm start:prod
- Run the server
pnpm dev:api
- Start the solid.js frontend
pnpm dev:ui