Home

Awesome

Gleam Packages

📦 Search for Gleam packages on Hex.

A Gleam application using the Wisp web framework, served with the Mist web server, using a SQLite database.

The application is deployed on Fly where LiteFS is used to replicate the SQLite database across all instances of the application.

Environment variables

The application is configured with a series of environment variables.

Local development

Install Gleam! See ./Dockerfile for which version is used in production.

# Download a recent copy of the database
rm -f database.sqlite*
curl -o database.sqlite https://packages.gleam.run/packages.sqlite

gleam test        # Run the tests
gleam run server  # Run the server

The SQL query functions are generated from the sql directory. To regenerate them run gleam run -m codegen.

Deployment

# Deploy the application
fly deploy