Mini project: A webhook logger

Mini project

Mini project: A webhook logger

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will build

A webhook logger: a small server that keeps a diary of every event Shopify sends.

  • Shopify sends a POST to your tunnel address.
  • The logger checks the HMAC. A bad one gets 401, and nothing is saved.
  • The logger answers 200 right away.
  • It looks up X-Shopify-Webhook-Id. If it has seen that ID, it skips the event.
  • Otherwise, it adds one line to events.jsonl and keeps the ID.

2 hours Mini project

Everything in Shopify API

  • 25 step-by-step lessons
  • 4 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account