Show HN: Rust Web Framework

Date:

Rwf ‐ Rust Web Framework

Rwf is a comprehensive framework for building web applications in Rust. Written using the classic MVC pattern (model-view-controller), Rwf comes standard with everything you need to easily build fast and secure web apps.

Documentation

πŸ“˜ The documentation is available here.

Features overview

  • βœ”οΈ HTTP server
  • βœ”οΈ User-friendly ORM to build PostgreSQL queries easily
  • βœ”οΈ Dynamic templates
  • βœ”οΈ Authentication & built-in user sessions
  • βœ”οΈ Middleware
  • βœ”οΈ Background jobs and scheduled jobs
  • βœ”οΈ Database migrations
  • βœ”οΈ Built-in REST framework with JSON serialization
  • βœ”οΈ WebSockets support
  • βœ”οΈ Static files hosting
  • βœ”οΈ Tight integration with Hotwired Turbo for building backend-driven SPAs
  • βœ”οΈ Environment-specific configuration
  • βœ”οΈ Logging and metrics
  • βœ”οΈ CLI
  • βœ”οΈ WSGI server for migrating from Django/Flask apps

Quick start

To add Rwf to your stack, create a Rust binary application and add rwf and tokio to your dependencies:

cargo add rwf
cargo add tokio@1 --features full

Building an app is then as simple as:

Hey Rwf!")) } } #[tokio::main] async fn main() { Server::new(vec![ route!("/" => IndexController), ]) .launch("0.0.0.0:8000") .await .unwrap(); }

Examples

See examples for common use cases.

🚧 Status 🚧

Rwf is in early development and not ready for production. Many features and documentation are incomplete. Contributions are welcome. Please see CONTRIBUTING for guidelines, ARCHITECTURE for a tour of the code, and ROADMAP for a non-exhaustive list of desired features.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Share post:

Subscribe

Popular

More like this
Related

FTC’s rule banning fake online reviews goes into effect

WASHINGTON -- A federal rule banning fake online reviews...

Computer use, a new Claude 3.5 Sonnet, and Claude 3.5 Haiku

Today, we’re announcing an upgraded Claude 3.5 Sonnet, and...

Show HN: AI Image Upscaler and Photo Enhancer with up to 10x resolution boost

imageUpscaler.io: Where AI Meets Image PerfectionEnhancing Images ...

Against /Tmp

I commented on Lobsters that /tmp is...