https://github.com/resend/resend-axum-example
https://github.com/resend/resend-axum-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/resend/resend-axum-example
- Owner: resend
- License: mit
- Created: 2024-06-11T16:38:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T00:10:17.000Z (over 1 year ago)
- Last Synced: 2025-03-01T21:02:04.755Z (over 1 year ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Axum
This example shows how to use Resend with [Axum](https://crates.io/crates/axum).
## Prerequisites
To get the most out of this guide, you’ll need to:
* [Create an API key](https://resend.com/api-keys)
* [Verify your domain](https://resend.com/domains)
## Instructions
1. Replace `re_123456789` on `src/main.rs` with your API key.
2. Run the server:
```sh
cargo run
```
3. Access the URL http://localhost:3000/ via your browser or run
```sh
curl http://localhost:3000/
```
## License
MIT License