Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/resend/resend-bun-example
This example shows how to use Resend with Bun
https://github.com/resend/resend-bun-example
Last synced: 5 days ago
JSON representation
This example shows how to use Resend with Bun
- Host: GitHub
- URL: https://github.com/resend/resend-bun-example
- Owner: resend
- License: mit
- Created: 2023-09-17T15:01:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-09T02:17:52.000Z (11 days ago)
- Last Synced: 2024-11-09T03:24:13.758Z (11 days ago)
- Language: TypeScript
- Homepage:
- Size: 37.1 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Bun
This example shows how to use Resend with [Bun](https://bun.sh).
## 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. Run `cp .env.template .env` and replace the API key value.
2. Install dependencies:
```sh
bun install
```3. Start the server:
```sh
bun index.tsx
```Navigate to [http://localhost:3000](http://localhost:3000) to send an email with the test parameters.
4. Update the `from` and `to` in the index.tsx file
You can update the `from` and `to` so you send from your own domain and to your email address.
To send emails to anyone, the `from` address must be a verified domain in your account, otherwise you can only send emails to yourself.## License
MIT License