Skip to content

Getting Started

Prerequisites

Ensure the following are installed:

ToolVersionPurpose
Rust1.93.0+Compiler (edition 2024)
PostgreSQL18+Primary database
Redis8+Sessions, cache, rate limiting, worker locks
NATS2.12+Job queue (JetStream)
MeiliSearch1.30+Full-text search engine
S3-compatible object storageLatestR2 assets storage (images, sitemap)

Clone and Setup

bash
git clone https://github.com/levish0/AxumKit.git
cd AxumKit
cp .env.example .env

See Environment Variables for all required values.

Run Migrations

AxumKit uses SeaORM migrations.

bash
cd crates/migration
cargo run -- up

Other commands:

bash
cargo run -- down
cargo run -- fresh
cargo run -- status

Start the Server

bash
cargo run -p server

API server starts at http://localhost:8000.

Start the Worker

In another terminal:

bash
cargo run -p worker

The worker handles email delivery, user search indexing, and cron jobs.

Verify Setup

bash
curl http://localhost:8000/health-check

Swagger UI (debug builds): http://localhost:8000/docs

Next Steps

Released under the MIT License.