Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickel-org/nickel.rs
An expressjs inspired web framework for Rust
https://github.com/nickel-org/nickel.rs
Last synced: about 2 months ago
JSON representation
An expressjs inspired web framework for Rust
- Host: GitHub
- URL: https://github.com/nickel-org/nickel.rs
- Owner: nickel-org
- License: mit
- Created: 2014-06-03T22:36:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T11:40:42.000Z (about 2 years ago)
- Last Synced: 2024-04-14T17:02:11.845Z (2 months ago)
- Language: Rust
- Homepage: http://nickel-org.github.io/
- Size: 9.17 MB
- Stars: 3,028
- Watchers: 72
- Forks: 162
- Open Issues: 54
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: LICENSE
Lists
- awesome-rust - Nickel
- awesome-rust-zh - Nickel - ci.org/nickel-org/nickel.rs.svg?branch=master">](https://travis-ci.org/nickel-org/nickel.rs) (库 / 网页编程)
- awesome-stars - nickel.rs - An expressjs inspired web framework for Rust (Rust)
- awesome-stars - nickel-org/nickel.rs - An expressjs inspired web framework for Rust (Rust)
- awesome-stars - nickel.rs - org | 3031 | (Rust)
- awesome-stars - nickel-org/nickel.rs - An expressjs inspired web framework for Rust (Rust)
- awesome-stars - nickel-org/nickel.rs - An expressjs inspired web framework for Rust (Rust)
- awesome-stars - nickel.rs - org | 3031 | (Rust)
- awesome-stars - nickel.rs - org | 2710 | (Rust)
README
# [nickel.rs](http://nickel-org.github.io) [![Build Status](https://travis-ci.org/nickel-org/nickel.rs.svg?branch=master)](https://travis-ci.org/nickel-org/nickel.rs) [![](http://meritbadge.herokuapp.com/nickel)](https://crates.io/crates/nickel) [![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/nickel-org/nickel.rs/master/LICENSE) [![Join the chat at https://gitter.im/nickel-org/nickel.rs](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/nickel-org/nickel.rs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[nickel.rs](http://nickel-org.github.io) is a simple and lightweight foundation for web applications written in Rust. Its API is inspired by the popular express framework for JavaScript.
## Hello world
```rust,no_run
#[macro_use] extern crate nickel;use nickel::{Nickel, HttpRouter};
fn main() {
let mut server = Nickel::new();
server.get("**", middleware!("Hello World"));
server.listen("127.0.0.1:6767");
}
```### Dependencies
You'll need to create a *Cargo.toml* that looks like this;
```toml
[package]name = "my-nickel-app"
version = "0.0.1"
authors = ["yourname"][dependencies.nickel]
version = "*"
# If you are using the 'nightly' rust channel you can uncomment
# the line below to activate unstable features
# features = ["unstable"]# Some examples require the `rustc_serialize` crate, which will
# require uncommenting the lines below
# [dependencies]
# rustc-serialize = "*"
```You can then compile this using *Cargo build* and run it using *Cargo run*. After it's running you should visit http://localhost:6767 to see your hello world!
## More examples
More examples can be found [in the examples directory](/examples/) and the full documentation can be [found here](https://docs.rs/nickel/).
## Contributing
[nickel.rs](http://nickel-org.github.io) is a community effort. We welcome new contributors with open arms. Please read the [contributing guide here](/contributing.md) first.
If you're looking for inspiration, there's list of [open issues](https://github.com/nickel-org/nickel/issues?state=open) right here on github.
If you need a helping hand reach out to [@jolhoeft](https://github.com/jolhoeft), [@cburgdorf](https://github.com/cburgdorf), [@Ryman](https://github.com/Ryman) or [@SimonPersson](https://github.com/SimonPersson).
And hey, did you know you can also contribute by just starring the project here on github :)
### Development Plan
| Version | Branch | Description |
| ------- | ------------ | -------------------------------------------------- |
| 0.11.x | maint-0.11.x | hyper-0.10.x (synchronous version), bug fixes only |
| 0.12.x | master | hyper-0.14.x (asynchronous version) |
| 0.13.x | | new features, possibly will be 1.0 instead |