axum/examples/README.md

28 lines
2.2 KiB
Markdown
Raw Normal View History

# Examples
- [`hello_world`](../examples/hello_world.rs) - Very small getting started app.
2021-07-22 15:41:28 +02:00
- [`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>`.
2021-07-22 15:41:28 +02:00
- [`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).
2021-07-09 21:36:14 +02:00
- [`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.
2021-06-19 15:40:46 +02:00
- [`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.
- [`sessions`](../examples/sessions.rs) - Sessions and cookies using [`async-session`](https://crates.io/crates/async-session).
- [`tls_rustls`](../examples/tls_rustls.rs) - TLS with [`tokio-rustls`](https://crates.io/crates/tokio-rustls).
2021-08-02 21:42:10 +02:00
- [`chat`](../examples/chat.rs) - Chat application example.
2021-08-03 17:00:21 +02:00
- [`404`](../examples/404.rs) - Custom 404 page.
- [`async-graphql`](../examples/async-graphql) - GraphQL example using [`async-graphql`](https://crates.io/crates/async-graphql).
- [`tracing_aka_logging`](../examples/tracing_aka_logging) - How to setup and configure tracing/logging.
2021-08-08 17:22:24 +02:00
- [`oauth`](../examples/oauth.rs) - Implementing authentication using [`oauth2`](https://crates.io/crates/oauth2) and [`async-session`](https://crates.io/crates/async-session).
2021-08-05 13:47:19 +02:00
# Community showcase
- [Houseflow](https://github.com/gbaranski/houseflow): House automation platform written in Rust.