https://github.com/wgwz/flask-error-alerts
Flask error alerts with Twilio Sendgrid
https://github.com/wgwz/flask-error-alerts
flask sendgrid twilio
Last synced: 2 months ago
JSON representation
Flask error alerts with Twilio Sendgrid
- Host: GitHub
- URL: https://github.com/wgwz/flask-error-alerts
- Owner: wgwz
- License: mit
- Created: 2020-04-16T18:16:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T21:38:01.000Z (about 3 years ago)
- Last Synced: 2025-04-08T11:39:34.011Z (about 1 year ago)
- Topics: flask, sendgrid, twilio
- Language: Python
- Homepage: https://www.twilio.com/blog/receive-flask-error-alerts-email-twilio-sendgrid
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask Error Alerts with Twilio Sendgrid
Full tutorial can be found here:
This code shows how to send an email alert every time an unhandled exception occurs.
## Getting Started
### Installing
```
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
```
### Config
Create a `.env` file in project directory with the following:
```
SENDGRID_API_KEY=yourkey
FROM_EMAIL=youremail
TO_EMAIL=youremail
```
### Running locally
```
(venv) $ flask run
```
Visit [localhost:5000/](localhost:5000/)
## Built With
* [Flask](https://flask.palletsprojects.com/en/1.1.x/) - The web framework used
* [Twilio Sendgrid](https://www.twilio.com/sendgrid) - Email Service
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details