Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/resend/resend-fastapi-example
https://github.com/resend/resend-fastapi-example
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/resend/resend-fastapi-example
- Owner: resend
- License: mit
- Created: 2023-06-12T23:22:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-29T00:25:48.000Z (6 months ago)
- Last Synced: 2024-05-29T14:39:55.922Z (6 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with FastAPI
This example shows how to use Resend with [FastAPI](https://fastapi.tiangolo.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)
* 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
uvicorn main:app --reload
```4. Access the URL `http://127.0.0.1:8000/docs` and try it out.
## License
MIT License