Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: 2 days ago
JSON representation

This is a simple API built with Rust and Axum

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.