loco_minijinja_engine/examples/usage_example
2025-01-13 21:40:44 +01:00
..
.cargo code: usage example project 2025-01-11 14:21:03 +01:00
config code: usage example project 2025-01-11 14:21:03 +01:00
src code: better Readme, implementing custom intializer 2025-01-13 21:40:44 +01:00
tests code: usage example project 2025-01-11 14:21:03 +01:00
.gitignore code: usage example project 2025-01-11 14:21:03 +01:00
.rustfmt.toml code: usage example project 2025-01-11 14:21:03 +01:00
Cargo.lock code: usage example project 2025-01-11 14:21:03 +01:00
Cargo.toml code: usage example project 2025-01-11 14:21:03 +01:00
README.md code: usage example project 2025-01-11 14:21:03 +01:00

Welcome to Loco 🚋

Loco is a web and API framework running on Rust.

This is the Minijinja Template Example which includes no real functionality. It should demonstrate and test the usage of the Minijinja Template Engine for Loco.

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.

Getting help

Check out a quick tour or the complete guide.