Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajdip019/simple-rust-axum-api
This is a simple API built with Rust and Axum
https://github.com/rajdip019/simple-rust-axum-api
Last synced: 7 days ago
JSON representation
This is a simple API built with Rust and Axum
- Host: GitHub
- URL: https://github.com/rajdip019/simple-rust-axum-api
- Owner: Rajdip019
- License: mit
- Created: 2024-02-27T07:39:49.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-04T10:50:05.000Z (10 months ago)
- Last Synced: 2024-11-03T23:25:13.611Z (about 2 months ago)
- Language: Rust
- Size: 46.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Rust Axum API
It was mainly built for learning purposes.## How to run the server?
Install `cargo-watch`
```
cargo install cargo-watch
```
This runs the server.
```
cargo watch -q -c -w src/ -x run
```On the other terminal you can run
```
cargo watch -q -c -w tests -x "test -q quick_dev -- --nocapture"
```
With this, you can test the API endpoints. Save the `quick_dev.rs` to re-run the tests.