Files
RustApi/README.md
Beyhan Oğur 6e06119135 first commit
2026-04-26 22:31:06 +03:00

816 B

Rust Account System (Axum + SeaORM)

Minimal skeleton implementing an account system using Axum and SeaORM.

Quick start

  1. Copy .env.example to .env and edit values.
  2. Ensure DATABASE_URL points to your Postgres instance.
  3. Run migrations using sea-orm-cli or your preferred migration runner:
cargo install sea-orm-cli
DATABASE_URL="postgres://user:pass@localhost:5432/dbname" sea-orm-cli migrate up
  1. Build and run:
cargo build
cargo run

API prefix: /api/v1/ (e.g., /api/v1/auth/register).

Password hashing: BCrypt-SHA256 (pre-hash using SHA-256 then bcrypt). See src/core/security.rs.

OAuth: Google and GitHub are planned (configure client ids and secrets in .env).

Notes on switching DBs: change DATABASE_URL and use sea-orm-cli with the proper feature/driver.