0xDones / rust-api

Rust API using Actix and Diesel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drop Cases

Getting Started

# Start Postgres
docker-compose up -d

# Run the migrations
diesel setup
diesel migration run

# Run the app
cargo run

Example structure

  • <module>
    • controller.rs
    • model.rs
    • repository.rs
    • service.rs
  • infra
    • postgres/schema.rs
    • services/s3Service.rs
  • shared

ORMS

Postgres

About

Rust API using Actix and Diesel


Languages

Language:Rust 83.3%Language:PLpgSQL 15.7%Language:Shell 1.0%