Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mike-engel/gotham-router-composition
A small example demonstrating one way to compose a router in gotham
https://github.com/mike-engel/gotham-router-composition
example gotham router routing rust webserver
Last synced: 7 days ago
JSON representation
A small example demonstrating one way to compose a router in gotham
- Host: GitHub
- URL: https://github.com/mike-engel/gotham-router-composition
- Owner: mike-engel
- License: other
- Created: 2017-12-31T23:45:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-31T23:52:38.000Z (about 7 years ago)
- Last Synced: 2024-11-14T20:44:45.040Z (2 months ago)
- Topics: example, gotham, router, routing, rust, webserver
- Language: Rust
- Homepage: https://mike-engel.com/writing/router-composition-in-gotham
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# gotham-router-composition
> A small example demonstrating one way to compose a router in gotham
Welcome! To read more, read my initial blog post outlining the idea on my [website](https://mike-engel.com/writing/router-composition-in-gotham). If you have ideas on how to make this better or find a bug let me know in the issues!
# Installation and running
This project is meant to be run on the latest stable Rust. I recommend unstalling Rust via [rustup](https://rustup.rs). Because of the small scope of this project, getting up and running _should_ only be a single command.
```sh
cargo run
```If that was successful, you can now make a request to `http://localhost:7878/api/ping` and `http://localhost:7878/api/users`!
# [code of conduct](CODE_OF_CONDUCT.md)
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
# [license](LICENSE.md)