Skip to content

Latest commit

 

History

History

README.md

ExTauri Website

The showcase website for ExTauri, built with Francis and Tailwind CSS, following the structure of francis_site.

Structure

  • lib/ex_tauri_website.ex — the whole app: a single use Francis module with /, /health, static file serving, secure headers, and CSP
  • priv/templates/index.html.eex — the page template, styled with Tailwind utilities
  • assets/css/app.css — Tailwind v4 entrypoint (theme tokens + component classes)
  • priv/static/ — JS, images, and the compiled tw.css (build output, not committed)

Development

mix deps.get
mix assets.build            # compile Tailwind + digest static assets
mix francis.server          # http://localhost:4000
iex -S mix francis.server   # with an IEx console

Set PORT to serve on a different port. While iterating on styles, rebuild CSS with mix tailwind default (or run mix tailwind default -- --watch in a second terminal).

Tests

mix test

Production

docker build -t ex_tauri_website .
docker run -p 4000:4000 ex_tauri_website

Or build a release directly with MIX_ENV=prod mix do assets.build, release.