Getting Started
Prerequisites
Ensure the following are installed:
| Tool | Version | Purpose |
|---|---|---|
| Rust | 1.93.0+ | Compiler (edition 2024) |
| PostgreSQL | 18+ | Primary database |
| Redis | 8+ | Sessions, cache, rate limiting, worker locks |
| NATS | 2.12+ | Job queue (JetStream) |
| MeiliSearch | 1.30+ | Full-text search engine |
| S3-compatible object storage | Latest | R2 assets storage (images, sitemap) |
Clone and Setup
bash
git clone https://github.com/levish0/AxumKit.git
cd AxumKit
cp .env.example .envSee Environment Variables for all required values.
Run Migrations
AxumKit uses SeaORM migrations.
bash
cd crates/migration
cargo run -- upOther commands:
bash
cargo run -- down
cargo run -- fresh
cargo run -- statusStart the Server
bash
cargo run -p serverAPI server starts at http://localhost:8000.
Start the Worker
In another terminal:
bash
cargo run -p workerThe worker handles email delivery, user search indexing, and cron jobs.
Verify Setup
bash
curl http://localhost:8000/health-checkSwagger UI (debug builds): http://localhost:8000/docs