# Tenis Rajec — tenisrajec.sk Booking site for the tennis courts in Rajec. Visitors browse the weekly court calendar and an *About* page; the single admin manages courts, bookings and the About-page content. Built with [Loco](https://loco.rs), a web framework running on Rust. ## Quick Start ```sh cargo loco start ``` ```sh $ cargo loco start Finished dev [unoptimized + debuginfo] target(s) in 21.63s Running `target/debug/myapp start` : : : controller/app_routes.rs:203: [Middleware] Adding log trace id ▄ ▀ ▀ ▄ ▄ ▀ ▄ ▄ ▄▀ ▄ ▀▄▄ ▄ ▀ ▀ ▀▄▀█▄ ▀█▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▀▀█ ██████ █████ ███ █████ ███ █████ ███ ▀█ ██████ █████ ███ █████ ▀▀▀ █████ ███ ▄█▄ ██████ █████ ███ █████ █████ ███ ████▄ ██████ █████ ███ █████ ▄▄▄ █████ ███ █████ ██████ █████ ███ ████ ███ █████ ███ ████▀ ▀▀▀██▄ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ██▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ https://loco.rs environment: development database: automigrate logger: debug compilation: debug modes: server listening on http://localhost:5150 ``` ## Styling (CSS build) The UI uses Tailwind CSS + daisyUI. Rather than the render-blocking Tailwind Play CDN, the stylesheet is compiled ahead of time into a purged, minified bundle at `assets/static/css/app.css` (served at `/static/css/app.css`). One-time setup: ```sh npm install ``` Rebuild the bundle after changing any class names in `assets/views/**/*.html` or the theme config: ```sh npm run build:css # one-off, minified npm run watch:css # rebuild on save while developing templates ``` `assets/static/css/app.css` is committed, so a deploy needs no Node step — but remember to rebuild and commit it whenever the templates change. The Tailwind source lives in `assets/css/tailwind.css`; theme config is `tailwind.config.js`. ## Full Stack Serving You can check your [configuration](config/development.yaml) to pick either frontend setup or server-side rendered template, and activate the relevant configuration sections. ## Getting help Check out [a quick tour](https://loco.rs/docs/getting-started/tour/) or [the complete guide](https://loco.rs/docs/getting-started/guide/).