A high-performance, scalable backend framework built with Rust, Axum, and SeaORM for enterprise-grade applications.
This shows the main entry point of the server including the config loading, setup of global services, the route definition, telemetry and the server startup
This handler pulls the OrderService from the application state and calls the execute method on the CreateOrderCommand
This handler pulls the ReturnService from the application state and calls the execute method on the CloseReturnCommand
This shows the command definition, validation, and execution of the create order command.
This shows the command definition, and execution of the close return command.
This shows how we can find the returns based on the order ID using SeaORM
This shows how we can find the returns based on a date range using SeaORM.