Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/resend/resend-sinatra-example
This example shows how to use Resend with Sinatra
https://github.com/resend/resend-sinatra-example
Last synced: 5 days ago
JSON representation
This example shows how to use Resend with Sinatra
- Host: GitHub
- URL: https://github.com/resend/resend-sinatra-example
- Owner: resend
- License: mit
- Created: 2023-06-05T18:49:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T02:01:33.000Z (12 days ago)
- Last Synced: 2024-11-08T03:17:14.898Z (12 days ago)
- Language: Ruby
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Sinatra
This example shows how to use Resend with [Sinatra](https://sinatrarb.com).
## 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)## Installation
Get the [Resend Ruby SDK](https://github.com/resendlabs/resend-ruby).
```sh
# Via RubyGems
gem install resend# Via Gemfile
gem 'resend'
```## Instructions
1. Set your `RESEND_API_KEY` environment variable by running:
```sh
export RESEND_API_KEY="re_123456789"
```2. Install dependencies:
```sh
bundle install
```3. Execute the following command:
```sh
ruby index.rb
```
Or if you installed via Gemfile with `bundle install` run the following command:```sh
bundle exec ruby index.rb
```## License
MIT License