This repository demonstrates how to use AppSignal to track errors in a Flask application.
Read the article on AppSignal's blog.
-
Create a new virtual environment and activate it:
$ python -m venv venv && source venv/bin/activate
-
Install the dependencies:
$ pip install -r requirements.txt
-
Create a .env file with the following contents:
APPSIGNAL_PUSH_API_KEY=<your_push_api_key>
-
Initialize the database:
$ python init_db.py
-
Run the development server:
$ flask run
-
Visit http://localhost:5000/ in your favorite web browser.