Crate lamo

source ·
Expand description

§Starting A New Project

To start a new project, you can use cargo-generate:

cargo install loco-cli
❯ loco new
✔ ❯ App name? · myapp
? ❯ What would you like to build? ›
❯ lightweight-service (minimal, only controllers and views)
  Rest API (with DB and user auth)
  Saas app (with DB and user auth)

§Available Features

To avoid compiling unused dependencies, loco gates certain features.

FeatureDefaultDescription
auth_jwttrueEnable user authentication.
clitrueExpose Cli commands.
`testingfalseTest Utilities Module.
with-dbtruewith-db.
channelsfalseEnable socket channels.

Re-exports§

Modules§

  • This module contains the core components and traits for building a web server application.
  • Application Bootstrapping and Logic
  • command-line interface for running various tasks and commands related to the application. It allows developers to interact with the application via the command line.
  • Configuration Management
  • Manage web server routing
  • Database Operations
  • Defines the application environment. By given the environment you can also load the application configuration
  • Application Error Handling
  • This module defines the email-related functionality, including the Mailer trait and its implementation, Email structure, and the MailerWorker for asynchronous email processing.
  • Model Error Handling
  • Database Table Schema Helpers
  • Task Management Module
  • This module provides utility functions for handling validation errors for structs. It useful if you want to validate model before inset to Database.

Type Aliases§

  • Application results options list