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
- Host: GitHub
- URL: https://github.com/edo1z/rust-axum-sqlx-sample
- Owner: edo1z
- License: mit
- Created: 2022-01-21T01:33:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T05:57:26.000Z (7 months ago)
- Last Synced: 2025-03-27T16:09:31.810Z (2 months ago)
- Topics: axum, openapi3, rust, sqlx
- Language: Rust
- Homepage:
- Size: 157 KB
- Stars: 19
- Watchers: 1
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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