Karat Financial Take Home Challenge
Getting Started
-
Install the stripe CLI tool if you haven't already!
-
run
stripe listen --forward-to localhost:3000/api/getStripeWebhooks
-
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 abovestripe listen
command, and CARD_ID takes any card_id (I've included two for testing purposes!) -
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
.