This repository is meant to demonstrate a minimal working API using the Actix-web framework. It also makes use of the excellent tracing-bunyan-formatter crate to provide structured logging output.
To run this, first install the Rust compiler. Next, clone this repository, and simply use cargo run
to compile the code and boot the API up. You can then play around with the endpoints:
- Static HTML content: http://localhost:8000/
- Current time of day: http://localhost:8000/time
- Random Lorem ipsum quote generator: http://localhost:8000/quote
Of course this barely scratches the surface of what Actix-web is capable of. I recommend reading the documentation to learn more!