Priec 49d64d397e
Some checks failed
CI / Check Style (push) Has been cancelled
CI / Run Clippy (push) Has been cancelled
CI / Run Tests (push) Has been cancelled
cena on multiple choice
2026-07-29 22:54:45 +02:00
2026-06-16 12:12:25 +02:00
2026-07-29 22:54:45 +02:00
2026-07-29 21:57:19 +02:00
2026-06-29 19:00:37 +02:00
2026-07-29 17:02:32 +02:00
2026-07-29 22:54:45 +02:00
2026-06-29 19:45:48 +02:00
2026-06-29 19:59:59 +02:00
2026-06-16 12:12:25 +02:00
2026-06-30 00:49:25 +02:00
2026-06-30 00:49:25 +02:00
2026-06-29 19:44:17 +02:00
2026-06-30 23:08:00 +00:00
2026-06-30 01:19:15 +02:00
2026-06-16 12:18:55 +02:00
2026-06-18 16:42:51 +02:00
2026-06-30 00:49:25 +02:00
2026-06-30 00:49:25 +02:00
2026-06-17 09:58:36 +02:00

Welcome to Loco 🚋

Loco is a web and API framework running on Rust.

This is the SaaS starter which includes a User model and authentication based on JWT. It also include configuration sections that help you pick either a frontend or a server-side template set up for your fullstack server.

Quick Start

cargo loco start
$ 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

Full Stack Serving

You can check your configuration to pick either frontend setup or server-side rendered template, and activate the relevant configuration sections.

Production Docker Deploy

Create the production environment file:

cp .env.production.example .env.production

Edit .env.production and set real secrets for POSTGRES_PASSWORD, JWT_SECRET, OAUTH_PRIVATE_KEY, and the OAuth client values. Create the shared network once (the central Caddy joins it too):

docker network create kompress_eshop-net

Then start the production stack:

make up

The stack runs the Loco app + Postgres only — TLS/routing is handled by the central Caddy (docker-compose.caddy.yml), which shares the external kompress_eshop-net network and reaches the app as kompress:5150 via the imported Caddyfile. The app port 5150 is never published to the host.

Getting help

Check out a quick tour or the complete guide.

Description
No description provided
Readme 15 MiB
Languages
HTML 63%
Rust 31.7%
Fluent 2.8%
Python 1.1%
CSS 0.6%
Other 0.6%