nixin-farm/nixin_farm_ssr
2024-10-21 17:13:31 +02:00
..
.cargo Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
.devcontainer Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
.github/workflows Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
assets cargo loco generate scaffold service name:string^ description:text configuration:text --htmx 2024-10-21 14:19:14 +02:00
config Add secure headers middlware in dev config 2024-10-21 17:13:31 +02:00
examples Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
frontend Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
migration cargo loco generate model --link bundles_services bundle:references service:references optional:bool 2024-10-21 14:44:07 +02:00
src add code to require authentication for 2 controllers functions (2 different syntax) 2024-10-21 17:01:55 +02:00
tests cargo loco generate model --link bundles_services bundle:references service:references optional:bool 2024-10-21 14:44:07 +02:00
.gitignore Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
.rustfmt.toml Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
Cargo.lock Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
Cargo.toml Add server side rendering version of the app 2024-10-16 20:50:41 +02:00
README.md Add server side rendering version of the app 2024-10-16 20:50:41 +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.

Getting help

Check out a quick tour or the complete guide.