- See and fulfill the RedwoodJS prerequisites
- Create a Sentry account
git clone https://github.com/realStandal/redwood-sentry-demo.git
cd redwood-sentry-demo
yarn install
Start by heading to Sentry's create a project page and setup a Browser JavaScript project with the name "redwood-sentry-demo". Once your project has been created, grab its DSN from the relevant page and set its value as the SENTRY_DSN
envrionment variable.
SENTRY_DSN=https://XXXXXXX@XXXXXXX.ingest.sentry.io/XXXXXXX
Create an SQLite database which will temporarily store registered users and be used to perform Prisma queries against.
yarn rw prisma db push
Start the RedwoodJS development server:
yarn rw dev
Then navigate to the /signup
page to create an account.
The home page provides a list of links to various pages which will trigger the following:
- Function Exception - A Function which throws an error tagged to the current user (via the web).
- Service Exception - A service which throws an error tagged to the current user (via the API and web).
- Prisma Tracing - A service which invokes a Prisma query, logging details about the request to Sentry.
- Unauthenticated Exception - A service which throws an error as an unauthenticated user.
This project is provided under the MIT license