Skip to content

Ryusei-0407/axum-rest

Repository files navigation

REST API Server powerd by Axum & sqlx & CockroachDB

Use Crate's

  • Tokio
  • Axum
  • sqlx

Setup Environment

Start CockroachDB cluster & CockroachDB UI

git clone [email protected]:Ryusei-0407/axum-rest.git

cd axum-rest

docker-compose up -d

# use sqlx -> cargo install sqlx-cli

sqlx db create

sqlx migrate run

make

visit the CockroachDB UI at http://localhost:8080

Clean Up

sqlx db drop

cargo clean

docker-compose down

About

use axum http framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages