A high-powered web server aimed at minimizing dependencies while maintaining speed. Modeled after Express, a popular Javascript web framework, Octane combines the speed of Rust with the ease-of-use and flexibility of Express to create the optimal user experience.
Create an octane instance, and then you can register your methods on it using app.METHOD()
```rust use octane::config::Config; use octane::responder::StatusCode; use octane::server::Octane; use octane::{ route, router::{Flow, Route}, }; use std::error::Error;
fn main() -> Result<(), Box
app.get(
"/",
route!(|req, res| {
res.send_file("templates/test.html").expect("File not found!");
Flow::Next
}),
)?;
app.add(Octane::static_dir("templates/"))?;
app.listen(8000)
} ```
Documentation will be available on docs.rs and on the offical Octane Site.
Checkout CONTRIBUTING.md for info on how to contribute to this project
OctaneWeb/Octane is licensed under the MIT License.