Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/resend/resend-flask-example


https://github.com/resend/resend-flask-example

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Resend with Flask

This example shows how to use Resend with [Flask](https://flask.palletsprojects.com/en/2.3.x/).

## 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)
* Install `virtualenv` by running `pip install virtualenv`

## Instructions

1. Create and activate a new virtual env with:

```sh
virtualenv venv
source venv/bin/activate
```

2. Install dependencies:

```sh
pip install -r requirements.txt
```

3. Set your RESEND_API_KEY environment variable by running:

```sh
export RESEND_API_KEY="re_123456789"
```

3. Execute the following command:

```sh
python app.py
```

## License

MIT License