/karat-challenge

Next.js Stripe Dashboard

Primary LanguageTypeScript

Karat Financial Take Home Challenge

Getting Started

  1. Install the stripe CLI tool if you haven't already!

  2. run stripe listen --forward-to localhost:3000/api/getStripeWebhooks

  3. update .env.local with stripe keys and a stripe card id. The secret key can be retrieved here. The webhook key can be found using the above stripe listen command, and CARD_ID takes any card_id (I've included two for testing purposes!)

  4. install dependencies and run the development server!

npm install
npm run dev

Open http://localhost:3000 with your browser to see the dashboard!

API routes can be accessed on http://localhost:3000/api/{route}. This endpoint can be edited in pages/api/{route}.ts.

Dashboard Gif

image

image