This project is a small attempt to create a serverless Stripe store with React and NodeJS.
- load product data based on SKU from Stripe
- Use the PaymentRequest API if available, otherwise fallback to regular form-based checkout
- uses Stripe Elements
- AWS Lambda-ready
It was thrown together on a Sunday afternoon as an attempt to create a MVP with not a lot of error handling. Not production-ready or beautiful by any means.
/backend: AWS Lambda-ready backend using NodeJS and Express
/frontend: Frontend using React and Stripe Elements, can be uploaded to S3 for static hosting
- Insert your public Stripe API key in
npm run start: Opens local dev server on :3000
npm run build: Builds the frontend into the /build folder, this can be uploaded to S3
- Set the
STRIPE_KEYenvironment variable to your private Stripe key
npm run start: Starts the local dev server
- Deployment on Lambda: Upload the folder, define
lambda.handleras the handler