โจ Lumina Framework
A beautiful, fast, and elegant web framework for Rust.
Inspired by Laravel's clean and readable syntax.
โจ Features
- ๐ Fast & Efficient โ Built on Tokio + Axum, fully async
- ๐จ Clean Syntax โ Laravel-like fluent API with
Requestbundle - ๐๏ธ MVC Architecture โ Controllers, Models, Services
- ๐ฃ๏ธ Elegant Routing โ Route groups, Middleware, and Param binding
- ๐ช Smart Scaffolding โ Full CRUD generation with fields in one command
- ๐งช Testing Suite โ Built-in testing with fluent assertions
- ๐๏ธ Database Layer โ SQLx, Migrations, Seeders, and Factories
- ๐ญ Template Engine โ Tera with
.blade.rspreprocessor and HTMX support - ๐ JWT Auth โ Full authentication scaffolding ready to use
- ๐ File Upload โ Multipart handling & Image manipulation
- ๐ณ Deployment Tools โ Docker, Nginx, and Supervisor auto-scaffolding
๐ฆ Installation
Anda dapat menginstall Lumina CLI secara global menggunakan cargo:
Atau jika Anda ingin menginstall dari source:
๐ Quick Start
1. Buat Project Baru
Gunakan CLI untuk membuat skeleton project baru:
2. Jalankan Server
Server berjalan di http://127.0.0.1:8000 ๐
โก Contoh Penggunaan
Smart CRUD Scaffolding
Buat modul produk lengkap (Model, Migration, Controller, Views) dalam 1 detik:
Elegant Controller Logic
Gunakan Request bundle untuk akses cepat ke segalanya:
pub async
Fluent Testing
async
๐ ๏ธ CLI Commands
| Command | Deskripsi |
|---|---|
serve |
Jalankan HTTP server |
make:crud |
Generate full CRUD scaffolding (Model, Controller, Migration, Views) |
make:auth |
Generate Authentication scaffolding (Register, Login, Views) |
migrate |
Jalankan database migrations |
db:seed |
Seed database dengan data dummy |
tinker |
Interactive REPL session |
make:docker |
Generate Dockerfile & docker-compose.yml |
make:nginx |
Generate Nginx configuration |
test:run |
Jalankan semua unit & integration tests |
๐ Dokumentasi Lengkap
Untuk panduan detail, tutorial CRUD, konfigurasi middleware, dan referensi API lengkap:
๐ License
MIT โ Lumina Java admin@lumina-java.com