Skip to content

Latest commit

 

History

History

Next.js Ecommerce Example

A Next.js ecommerce application showcasing Snowplow Ecommerce tracking, with Stripe.

Running locally

  1. npm install

  2. Fill the environment variables required in a local env file. A template is provided in .env.example. You can copy this file to .env.local and fill in the required values.

Environment Variable Description
NEXT_PUBLIC_SNOWPLOW_COLLECTOR_URL The URL of your Snowplow collector. If you don't have a Snowplow collector, you can use Snowplow Micro for testing.
STRIPE_SECRET_KEY Your Stripe secret key. If you don't have a Stripe account, you can create one here.
STRIPE_WEBHOOK_SECRET Your Stripe webhook secret. You can find this in your Stripe dashboard.

Important

STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET are required for the application to function correctly.

  1. npm run dev