No description
  • Rust 72.8%
  • CSS 23.7%
  • Dockerfile 3.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nate Cox 5c111ad359
All checks were successful
/ deploy (push) Successful in 12s
Fix traefik labels
2026-10-27 20:44:30 -07:00
.forgejo/workflows Add forgejo deploy runner 2026-10-27 20:12:15 -07:00
src Initial commit 2026-10-27 20:05:18 -07:00
toasty Initial commit 2026-10-27 20:05:18 -07:00
.gitignore Initial commit 2026-10-27 20:05:18 -07:00
build.rs Initial commit 2026-10-27 20:05:18 -07:00
Cargo.lock Initial commit 2026-10-27 20:05:18 -07:00
Cargo.toml Initial commit 2026-10-27 20:05:18 -07:00
components.toml Initial commit 2026-10-27 20:05:18 -07:00
docker-compose.yml Fix traefik labels 2026-10-27 20:44:30 -07:00
Dockerfile Initial commit 2026-10-27 20:05:18 -07:00
README.md Initial commit 2026-10-27 20:05:18 -07:00
styles.css Initial commit 2026-10-27 20:05:18 -07:00

hello-topcoat

A Topcoat application.

Development

Install the Topcoat CLI:

cargo install topcoat-cli

Create the database tables by generating a migration from the models and applying it:

cargo run -- toasty migration generate
cargo run -- toasty migration apply

Run both commands again after changing a model. The database is stored in data.db.

Start the development server, which rebuilds the application when you edit its source:

topcoat dev

Then open http://127.0.0.1:3000.

Project structure

Path Contents
src/app.rs, src/app/ The route tree: the router, layouts, pages, and routes.
src/features.rs, src/features/ Everything one feature owns, such as its data and business rules.
src/components.rs, src/components/ Shared UI components that belong to no single feature.
src/db.rs The database connection.
toasty/ The database migrations. Commit them with your code.

Pages in app use features and components. A feature can use shared components but never imports from app, and shared components never import from a feature.

Learn more