/appsignal-flask-error-tracking

Learn how to use AppSignal to track errors in a Flask app.

Primary LanguagePython

Track Errors in Flask with AppSignal

This repository demonstrates how to use AppSignal to track errors in a Flask application.

Read the article on AppSignal's blog.

Development Setup

  1. Create a new virtual environment and activate it:

    $ python -m venv venv && source venv/bin/activate
  2. Install the dependencies:

    $ pip install -r requirements.txt
  3. Create a .env file with the following contents:

    APPSIGNAL_PUSH_API_KEY=<your_push_api_key>
  4. Initialize the database:

    $ python init_db.py
  5. Run the development server:

    $ flask run
  6. Visit http://localhost:5000/ in your favorite web browser.