Examples
Simple
The Simple example is a very simple Axum HTTP service using JWT with JWKS for authentication, with a single route that returns a JSON response and an integration test that calls it.
Async-GraphQL
The Async-GraphQL example demonstrates an example Application architecture using Async-GraphQL, SeaORM, and Axum.
- Main is where the AxumApplication is initialized, using
pico_args
for light argument parsing. - Axum Routes are defined in
routes.rs
, along with an Inject Provider. - Axum Handlers are defined in
handlers.rs
. - The GraphQL Schema is initialized in
graphql.rs
. - The init::app() function intializes dependencies.
- Domains are defined in the
domains
directory, and handle Database Models, GraphQL Resolvers, supporting Services, and more.
This application will be slowly integrated into the framework itself, leaving a clean implementation of what is needed for your particular use cases rather than reinventing the wheel for each application.