The official Glimr website, built with Glimr itself. This repo serves as both the landing page and a real-world example of a Glimr application.
Prerequisites: Gleam, Erlang/OTP, and Node.js.
# Install dependencies
gleam build
npm install
# Set up environment
cp .env.example .env
# Run migrations
./glimr migrate
# Start the dev server
./glimr runThe site will be available at http://localhost:8000.
src/
app/
http/
controllers/ # Route handlers
validators/ # Form validation
console/
commands/ # CLI commands
resources/
views/ # Loom templates (.loom.html)
components/ # Reusable components
icons/ # SVG icon components
layouts/ # Page layouts
css/ # Stylesheets
ts/ # TypeScript (Shiki, Alpine)
database/ # Models, migrations, queries
priv/
static/
images/ # Static images
config/ # App, database, session config