Web development
A general overview of the status of this domain can be found at http://arewewebyet.com/. At the time of writing, a number of web frameworks that provide vital support for basic needs are available. To get an initial idea of coding in practice, we have supplied a "hello world"
example snippet for each of them:
iron
is the oldest framework. It was built for high concurrency needs, so it scales very well. The codebase has a high degree of modularity. Here is how you say"hello-world"
iniron
:
extern crate iron; use iron::prelude::*; use iron::status; fn main() { Iron::new(|_: &mut Request| { Ok(Response::with((status::Ok, "Hello World!"))) }).http("localhost:3000").unwrap(); }
- Another useful web framework inspired by
express.js
isnickel
(https://github.com/nickel-org/nickel.rs). Say"hello world"
innickel
like this:
#[macro_use] extern crate nickel; use nickel::{Nickel, HttpRouter}; fn main() { let mut server = Nickel::new(); server...