Crate rust_saas_boilerplate

Crate rust_saas_boilerplate 

Source
Expand description

Rust SaaS Boilerplate

A production-grade Rust SaaS boilerplate - A complete starter template for building SaaS applications. Can be used as a library dependency or run as a standalone server.

This boilerplate provides:

  • Complete authentication system
  • User management
  • Modular architecture
  • Error handling
  • Environment-based configuration
  • And much more!

§Usage as Library

Add to your Cargo.toml:

[dependencies]
rust-saas-boilerplate = { path = "../rust-saas-boilerplate" }
# Or from git:
# rust-saas-boilerplate = { git = "https://github.com/HardikKSavaliya/rust-saas-backend.git" }

Then use it in your code:

use rust_saas_boilerplate::{create_app, AppConfig};

let app = create_app();
// Use in your Axum router

§Usage as Binary

cargo run

Re-exports§

pub use app::rust_saas;
pub use config::AppConfig;
pub use error::AppError;
pub use error::AppResult;

Modules§

app
config
error
modules

Functions§

create_app
Create the application router This is the main entry point for using this library
init_logging
Initialize logging based on environment