How siryancealot-enterprises/rust-react-app-hello-world works
Project type and purpose
• This is a full-stack “Rust + React” SPA application. The Rust server (using Axum) hosts both:
• a set of HTTP JSON APIs
• the static React artifacts (built by Node)
• At runtime it also interacts with two backing services:
• Postgres (via sqlx)
• Meilisearch (via the Meilisearch Rust SDK)
• Docker Compose automates the local startup of Postgres and Meilisearch.
File structure
• Top-level folders:
• my-react-ts-app/ → the React SPA (TypeScript, built by npm)
• src/ → Rust code (main.rs, lib.rs, API modules, service modules)
• migrations/ → SQLX database migration scripts
• .cargo/, .sqlx/ → configuration for Rust build & query caching
• compose.yaml → Docker Compose spec for storefront of DB + search
• Rust services are organized under src/services (app_server, db, search, configs, tracing).
• API endpoints and resource definitions live in src/api.
• Binaries for utility tasks (init_dev_repo, docker_utils) under src/bin.
README
• Confirms Axum, sqlx + Postgres, Meilisearch integration.
• Describes how the Rust server is the only runtime serving both APIs and static SPA.
• Docker Compose is used to bring up Postgres and Meilisearch automatically.
Detail but avoid unnecessary sub-splitting
• How data and requests flow end-to-end.
• Essential external dependencies (Node build, Docker Compose services).