obaraelijah / axum-ddd-explicit-architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Management Circle App for University

Technology Stack

  • Rust
  • axum
  • tokio
  • Docker

Design Pattern Utilized

  • Domain Driven Design

How to run the App

You need to run the devcontainer first.

Then you can run the following command to start the server.

cargo run

or you can run the following command to start the server with watch mode && make sure the script is executabe.

./watch.sh

create

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
        "circle_name": "music club",
        "capacity": 10,
        "owner_name": "John Lennon",
        "owner_age": 21,
        "owner_grade": 3,
        "owner_major": "Music"
      }' \
  http://127.0.0.1:3000/circle

find

curl -X GET http://127.0.0.1:3000/circle/{circle_id}

update

curl -X PUT \
  -H "Content-Type: application/json" \
  -d '{
        "circle_name": "football club",
        "capacity": 15
      }' \
  http://127.0.0.1:3000/circle/{circle_id}

About


Languages

Language:Rust 94.5%Language:SQL 2.3%Language:Markdown 1.3%Language:YAML 0.8%Language:Makefile 0.7%Language:Dockerfile 0.3%Language:Shell 0.1%