Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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