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 runRe-exports§
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