An open API service indexing awesome lists of open source software.

https://github.com/edo1z/rust-axum-sqlx-sample

Rust Axum+SQLx Sample
https://github.com/edo1z/rust-axum-sqlx-sample

axum openapi3 rust sqlx

Last synced: about 2 months ago
JSON representation

Rust Axum+SQLx Sample

Awesome Lists containing this project

README

        

# rust-axum-sqlx-sample

## Install

```shell
git clone https://github.com/web3ten0/rust-axum-sqlx-1.git
cd rust-axum-sqlx-1/local
docker-compose up -d
sh scripts/exec_init_db
```

## Migration

- 参照: https://github.com/launchbadge/sqlx/tree/master/sqlx-cli

```shell
cd local/scripts
sh migrate add -r users
sh migrate run
sh migrate revert
```

## Swagger
### swagger-uiのURL
- http://localhost:8001