π Runique - Django-inspired Rust Web Framework
β οΈ Note: This documentation has been generated with AI assistance. While care has been taken to ensure accuracy, some links or details may contain errors. Please report issues on GitHub.
A modern and comprehensive Rust web framework inspired by Django, for building robust and performant web applications.
π Languages : English | π«π· FranΓ§ais
π Table of Contents
- π Installation
- ποΈ Architecture
- βοΈ Configuration
- π£οΈ Routing
- π Forms
- π¨ Templates
- ποΈ ORM
- π Middleware
- π¬ Flash Messages
- π Examples
π Installation
Full Documentation : Installation Guide
Quick start:
π Read : docs/en/01-installation.md for complete details
ποΈ Architecture
Full Documentation : Architecture Guide
Overview of Runique's architecture:
Runique Framework
βββ Forms System # Type-safe forms
βββ Routing Engine # URL pattern routing
βββ Template Engine # Tera templates
βββ Middleware Stack # Security & headers
βββ ORM Layer # SeaORM integration
βββ Utils # Helpers and utilities
π Read : docs/en/02-architecture.md for internal structure
βοΈ Configuration
Full Documentation : Configuration Guide
Configure your server and application:
let settings = Settings ;
π Read : docs/en/03-configuration.md for all options
π£οΈ Routing
Full Documentation : Routing Guide
Define your routes with Axum's Router:
use ;
π Read : docs/en/04-routing.md for patterns and options
π Forms
Full Documentation : Forms Guide
Create forms easily with #[derive(RuniqueForm)]:
use crateviews;
use *;
use ; // Macros must be here
pub async
// Handle form submission
async
π Read : docs/en/05-forms.md for all field types## π¨ Templates
Full Documentation : Templates Guide
Use Tera templates:
{{ title }}
{% for item in items %}
{{ item }}
{% endfor %}
π Read : docs/en/06-templates.md for complete syntax
ποΈ ORM
Full Documentation : ORM Guide
Use SeaORM with Django-like pattern:
impl_objects!;
let users = objects
.filter
.all
.await?;
π Read : docs/en/07-orm.md for advanced queries
π Middleware
Full Documentation : Middleware Guide
Integrated security middleware:
- CSRF Protection
- Content-Security-Policy (CSP)
- Allowed Hosts
- Security Headers
- XSS Sanitizer
π Read : docs/en/08-middleware.md for configuration
π¬ Flash Messages
Full Documentation : Flash Messages Guide
Temporary messages for users:
success!;
error!;
warning!;
π Read : docs/en/09-flash-messages.md for details
π Examples
Full Documentation : Examples Guide
Complete usage examples:
- Complete blog application
- User authentication
- File upload
- REST API
π Read : docs/en/10-examples.md for complete examples
π§ͺ Tests
# Unit tests
# Integration tests
# All tests
Results: 36/36 tests passing β
π Full Documentation
English (EN)
- Installation
- Architecture
- Configuration
- Routing
- Forms
- Templates
- ORM
- Middleware
- Flash Messages
- Examples
FranΓ§ais (FR)
- Installation
- Architecture
- Configuration
- Routage
- Formulaires
- Templates
- ORM
- Middlewares
- Flash Messages
- Exemples
π― Quick Start
- Read Installation
- Understand Architecture
- Check Examples
- Start coding your application
π Project Status
- β Compilation : No errors
- β Tests : 36/36 passing (100%)
- β Documentation : Complete (EN & FR)
- β Production : Ready
See PROJECT_STATUS.md for more details.
π Resources
- π Project Structure
- π Full Status
- π§ͺ Test Reports
- π Changelog
- π Documentation Guide
π License
MIT License - see SECURITY.md
π Production Ready
The Runique framework is stable, tested and documented, ready for production use.
Start now β Installation
π Available in: English | π«π· FranΓ§ais