mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 23:30:29 +01:00
132da26d5b
Not actually related to Axum, can be implemented directly with Hyper, but I figure its nice to have for demonstration and might help catch accidental breaking changes in the future.
15 lines
1.3 KiB
Markdown
15 lines
1.3 KiB
Markdown
# Examples
|
|
|
|
- [`hello_world`](../examples/hello_world.rs) - Very small getting started app.
|
|
- [`todos`](../examples/todos.rs) - Provides a RESTful web server managing some Todos.
|
|
- [`key_value_store`](../examples/key_value_store.rs) - Slightly larger app with an in-memory key/value store.
|
|
- [`form`](../examples/form.rs) - Receiving data from an HTML `<form>`.
|
|
- [`multipart_form`](../examples/multipart_form.rs) - How to parse `multipart/form-data` forms.
|
|
- [`static_file_server`](../examples/static_file_server.rs) - Serving static files from a directory. Could for example be the baseline for a single page app.
|
|
- [`templates`](../examples/templates.rs) - Rending HTML templates using [askama](https://crates.io/crates/askama).
|
|
- [`testing`](../examples/testing.rs) - How to test axum apps.
|
|
- [`versioning`](../examples/versioning.rs) - How one might version an API.
|
|
- [`websocket`](../examples/websocket.rs) - How to build an app that handles WebSocket connections.
|
|
- [`error_handling_and_dependency_injection`](../examples/error_handling_and_dependency_injection.rs) - How to handle errors and dependency injection using trait objects.
|
|
- [`tokio_postgres`](../examples/tokio_postgres.rs) - How to use a tokio-postgres and bb8 to query a database.
|
|
- [`unix_domain_socket`](../examples/unix_domain_socket.rs) - How to run an Axum server over unix domain sockets.
|