This repository is used as a base for a Stripe API server as part of the final project for WDD01. It is an API built with Begin to get products and start checkout sessions using Stripe
-
GET products
- Responds with the List all products response from Stripe. -
GET prices
- Responds with the List all prices response from Stripe. -
POST checkout-session
- Responds with a Session ID, obtained from Create Session.-
Request body:
{ "quantity": 2, "priceId": "price_12345" }
-
Deploy your own clone of this app to Begin!
- Start the local dev server:
npm start
- Lint your code:
npm run lint
(after you've installed a linter, of course) - Run your tests:
npm t
(don't forget to write some!)
- Quickstart - basics on working locally, project structure, deploying, and accessing your Begin app
- Creating new routes - basics on expanding the capabilities of your app
Head to docs.begin.com to learn more!