Skip to content

rerelurelu/lustre-routing-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lustre Routing Template

A web application template built with Gleam and Lustre, featuring client-side routing.

Quick Start

Prerequisites

Make sure you have Gleam installed on your system.

Installation

  1. Clone this repository:
git clone <repository-url>
cd lustre-ssg-template
  1. Install dependencies:
gleam deps download
  1. Start the development server:
gleam run -m lustre/dev start

The application will be available at http://localhost:1234

Development

Styling with Tailwind

This template comes with Tailwind CSS pre-configured. You can use Tailwind utility classes directly in your components:

html.div([
  attribute.class("bg-blue-500 text-white p-4 rounded-lg shadow-md")
], [
  html.text("Styled with Tailwind!")
])

Building for Production

Build a minified production bundle:

gleam run -m lustre/dev build app --minify

The built files will be available in the priv/static/ directory.

Available Commands

  • gleam deps download - Install dependencies
  • gleam run -m lustre/dev start - Start development server
  • gleam run -m lustre/dev build app - Build for development
  • gleam run -m lustre/dev build app --minify - Build for production

License

This template is available under the MIT License. See the LICENSE file for details.

About

A web application template built with Gleam and Lustre, featuring client-side routing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors