Rust Account System (Axum + SeaORM)
Minimal skeleton implementing an account system using Axum and SeaORM.
Quick start
- Copy
.env.exampleto.envand edit values. - Ensure
DATABASE_URLpoints to your Postgres instance. - Run migrations using
sea-orm-clior your preferred migration runner:
cargo install sea-orm-cli
DATABASE_URL="postgres://user:pass@localhost:5432/dbname" sea-orm-cli migrate up
- 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.
Description
Languages
Rust
100%