Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
node_modules
node_modules
.env
.env.local
.DS_Store
npm-debug.log*
32 changes: 29 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Sample Backend Repo for Sentry Tracing Tutorial
# Sentry Getting-Started Tutorial — Backend Sample

quickstart: `npm install && node server.js`
A small Express API used by the [Sentry getting-started tutorial](https://docs.sentry.io/product/sentry-basics/getting-started-tutorial/). It serves four product endpoints consumed by the companion [React frontend](https://github.com/getsentry/tracing-tutorial-frontend), plus a `/products/debug-sentry` route that throws an error you'll wire up to Sentry during the tutorial.

Refer to URL_HERE for more info.
## Run it

Requires **Node 18+**.

```bash
npm install
npm start
```

The server runs at [http://localhost:3001](http://localhost:3001).

## Endpoints

| Path | What it does |
|---|---|
| `GET /` | Hello message |
| `GET /products` | Lists the products route |
| `GET /products/kitten-mittens` | Returns product info |
| `GET /products/doggles` | Returns product info |
| `GET /products/clown-shoes` | Returns product info |
| `GET /products/nonfat-water` | Returns product info |
| `GET /products/debug-sentry` | Throws a sample error |
| `GET /img/*` | Static product images |

## Tutorial steps

Follow the [tutorial](https://docs.sentry.io/product/sentry-basics/getting-started-tutorial/) for the full flow.
Loading
Loading