Skip to content

openanalytics/leptodon-starter

Repository files navigation

Leptodon starter

This is a template repository to get started with leptos + leptodon inside an axum ssr environment.

Getting Started

  1. Click the green Use this template button and create a repo using this template.
  2. Clone your repository
  3. Install cargo-leptos cargo install --locked cargo-leptos
  4. Run with cargo leptos serve

Additional steps for updating the tailwind stylesheet.

  1. npm install
  2. Run tailwind's css generator npx tailwindcss -i input.css -o style/output.css --watch

The starter should now be available on http://localhost:3000

Versions

build.rs ?

  • Runs cargo run codegen to generate .tailwind for tailwind's class generation.
  • Generates src/generated_demolist.rs containing a list of all demos to construct routes and sidebar entries programatically.
    • Allows for easy alfabetical sorting and reduces maintenance burden of adding/removing entries.

About

Starter template for Leptodon.

Topics

Resources

License

Stars

Watchers

Forks

Contributors