• Stars
    star
    214
  • Rank 184,678 (Top 4 %)
  • Language
    TypeScript
  • Created over 4 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fullstack Stripe Payments for the JavaScript Developer

Fullstack Stripe Payments for the JavaScript Developer

Build a fullstack Stripe Payments solution with Node.js. Learn the following concepts...

  • Build a secure backend with Node.js & Express
  • Manage Stripe Checkout sessions
  • Use the Payment Intents API to support 3D Secure Payments
  • Recurring subscriptions & webhooks
  • Customize the UI with Stripe Elements
  • Integrate with real cloud infrastructure (Firebase Auth & Firestore)
  • Deploy as a Docker Container OR to Firebase Cloud Functions

Try the Live Demo (React).

Enroll in the Stripe JavaScript Course.

Usage

Clone this repo.

Backend Setup

The /server directory contains the Node.js API. Replace the .env file with your API credentials.

cd server
npm install

npm run dev

Running Webhooks in Development

Install the Stripe CLI to run webhooks in development.

stripe listen --forward-to localhost:3333/hooks

Frontend Setup

The backend API can be integrated with the following frontend frameworks.

React

cd react-app
npm install
npm start

Angular

Work in Progress

Vue

Work in Progress

Deployment

Option 1 - Docker

Dockerize the server for deployment to services like Cloud Run, GKE, Elastic Beanstalk, etc.

cd server
docker build -t fireship/stripe-server .
docker run -p 3333:3333 fireship/stripe-server 

Option 2 - Firebase Cloud Functions

Deploy to Cloud Functions to simplify your code with a tight integration to Firebase.

firebase deploy --only functions

More Repositories

1

fireship.io

Build and ship your app faster https://fireship.io
Svelte
3,553
star
2

flamethrower

A blazingly fast router for static sites
TypeScript
2,785
star
3

threejs-scroll-animation-demo

3D Scrolling Portfolio Website with Three.js
HTML
1,494
star
4

react-firebase-chat

JavaScript
839
star
5

222-responsive-icon-nav-css

A Simple Responsive Animated CSS Icon Navbar
HTML
706
star
6

tailwind-dashboard

Discord inspired dashboard built with Tailwind CSS and React
JavaScript
604
star
7

flutter-firebase-quizapp-course

QuizApp Built with Flutter & Firebase
Dart
560
star
8

229-multi-level-dropdown

Build an animated multi-level dropdown inspired by Facebook's UI
JavaScript
554
star
9

webrtc-firebase-demo

Video Chat with WebRTC and Firebase
JavaScript
518
star
10

node-blockchain

Blockchain Cryptocurrency Implemented with Node & TypeScript
TypeScript
495
star
11

next-firebase-course

Next.js + Firebase - The Full Course
JavaScript
477
star
12

gpt3-twitter-bot

Build a GPT-3 Powered Twitter Bot with Node.js & Firebase
JavaScript
474
star
13

gun-chat

Decentralized Chat App with Gun.js
JavaScript
448
star
14

10-javascript-frameworks

Comparison of 10 frontend JavaScript frameworks
TypeScript
439
star
15

node-crypto-examples

7 Useful Examples of Cryptography in Node.js
JavaScript
383
star
16

nft-art-generator

A simple randomized NFT art generator
JavaScript
366
star
17

cramer-algo-trader

Trade Stocks with Node.js, Alpaca, and GPT-3
JavaScript
297
star
18

next13-pocketbase-demo

Demo for the new Next.js 13 features with Pocketbase.
CSS
276
star
19

223-electron-screen-recorder

Episode 223 - Build a Screen Recorder with Electron
JavaScript
273
star
20

sorting-algorithms

A collection of sorting algorithms implemented in JS
JavaScript
270
star
21

javascript-millionaire

Who wants to be a JavaScript Millionaire terminal game
JavaScript
260
star
22

git-sticker

submit pull request, git free sticker πŸ”₯
JavaScript
251
star
23

224-animated-css-grid

Episode 224 - Build Three CSS Grid Layouts from Scratch
HTML
246
star
24

web3-nft-dapp-tutorial

A simple web3 app for minting NFTs
JavaScript
224
star
25

wavy-curvey-blobby-website

A website design with lots of waves, curves, a blobs
HTML
205
star
26

animated-svg-demo

SVG + CSS Animation Tutorial
HTML
193
star
27

stacked-card-list

Stacked Card List Demo
HTML
187
star
28

225-github-actions-demo

Episode 225 - Setup CI/CD with Github Actions
HTML
178
star
29

socketio-minimal-demo

Minimal socket.io group chat demo
JavaScript
178
star
30

pocketchat-tutorial

A basic realtime chat app with Pocketbase and Svelte
Svelte
175
star
31

fkit-course

The Full SvelteKit Course
Svelte
174
star
32

react-wasm-gif-maker

Video to GIF with WASM (FFpeg) & React
JavaScript
167
star
33

javascript-course

JavaScript - The Full Course
JavaScript
158
star
34

angular-tic-tac-toe

Angular Tic-Tac-Toe - A Tutorial for Beginners
TypeScript
146
star
35

this-video-has-n-views

Use the YouTube API to update a video title
JavaScript
144
star
36

api-monetization-demo

Build a Monetized API with Stripe Metered Billing
JavaScript
140
star
37

skydiving-cat-parallax

React Spring Parallax Demo
JavaScript
139
star
38

226-css-theme-toggler

Episode 226 - Build a CSS Theme Toggler from Scratch
HTML
138
star
39

nextjs-course

Next.js Full Course
TypeScript
129
star
40

7-pwa-features-demo

Seven web-platform features you didn't know existed.
JavaScript
124
star
41

nextjs-basics

Next.js in 100 Seconds Demo Code
JavaScript
108
star
42

3.1-firebase-basics

Firebase - The Basics
JavaScript
98
star
43

framer-demo

Framer motion demo with React
JavaScript
97
star
44

192-flutter-fcm-push-notifications

Episode 192 - Flutter Firebase Cloud Messaging Guide
Dart
94
star
45

tdd-basics-project

Implement a JS Stack with TDD
JavaScript
93
star
46

flutter-firebase-course

QuizApp Built with Flutter & Firebase
Dart
92
star
47

fireship-quizapp-data

A node script to populate Firestore with quiz questions
JavaScript
86
star
48

182-svelte-firebase

Episode 182 - Svelte 3 + RxFire
JavaScript
83
star
49

230-animated-form-password-meter

Animated Form w/ Password Strength Meter
HTML
78
star
50

redis-nextjs-fulltext-search

Instant Fulltext Search with Redis & Next.js
JavaScript
77
star
51

docker-nodejs-basic-demo

A simple demo running Node.js on Docker
JavaScript
76
star
52

stripe-for-saas

Stripe Course for Software-as-a-Service App Developers
TypeScript
75
star
53

react-course

React - The Full Course
JavaScript
73
star
54

invite-only-phone-auth

Invite-Only FOMO Auth with React & Firebase
JavaScript
72
star
55

google-sheets-database

Google Sheets as a Database - Next.js Demo
JavaScript
67
star
56

175-code-this-not-that-rxjs

Episode 175 - Code This, Not That. RxJS.
JavaScript
66
star
57

183-flutter-draggable-game

Episode 183 - Build a simple Drag-and-Drop kid's game with Flutter
Dart
65
star
58

193-paypal-checkout-v2-demos

Episode 193 - PayPal Checkout with Angular, React, and Vue
TypeScript
62
star
59

supaship.io

HTML
61
star
60

firechat-react-native

Firebase chat app built with React Native
JavaScript
58
star
61

185-advanced-flutter-firestore

Episide 185 - Advanced Techniques for working with data in Firebase & Flutter
Dart
55
star
62

174-flutter-firestore-animated-slideshow

Episode 174 - Animated Slideshow Inspired by Reflectly
Dart
54
star
63

firechat-flutter

Firebase chat app made with Flutter
Dart
53
star
64

rust-in-100

Rust in 100 seconds, potentially and beyond!
Rust
51
star
65

vue-firebase-walkie-talkie

Build a walkie-talkie style chat app with Vue & Firebase
Vue
51
star
66

nodejs-typescript-starter

A very basic starter for Node.js + TypeScript
TypeScript
50
star
67

202-chatbot-dialogflow

Episode 202 - Build a chatbot with Dialogflow, Cloud Functions, and Angular
TypeScript
49
star
68

167-flutter-geolocation-firestore

Episode 167 - Realtime Geolocation with Flutter, Google Maps, and Firestore
Dart
48
star
69

198-web-scraper-link-preview

TypeScript
47
star
70

coinbase-cloud-functions

Coinbase + Firebase Cloud Functions Demo
JavaScript
47
star
71

fire-baseline

Baseline setup for Firebase in common frontend frameworks
TypeScript
46
star
72

170-flutter-animated-radial-menu

Episode 170 - Build an Animated Radial Menu from Scratch
Dart
44
star
73

flutter-base

Base app for Flutter + Firebase Lessons
Dart
44
star
74

169-pwa-trusted-web-activity

Episode 169 - Deploy a PWA to as an Android Package to the Google Play Store
Shell
41
star
75

dart-course

Master the Basics of the Dart Language
Dart
35
star
76

firebase-security-course

Master Firebase Security Rules
JavaScript
34
star
77

177-flare-flutter-giphy-navbar

Episode 177 - Giphy-inspired navbar with Flutter & Flare
Dart
33
star
78

213-deckgl-google-maps

Episode 213 - Visualize large datasets on Google Maps with deck.gl
JavaScript
31
star
79

171-stripe-elements-angular

Stripe Elements and Checkout in Angular
TypeScript
29
star
80

199-flutter-firebase-storage-uploads

Episode 199 - Capture Files in Flutter and Upload to Firebase Storage
Dart
26
star
81

multifactor-auth-firebase

Implement 2FA or Multifactor Auth with SMS Text Verification
JavaScript
26
star
82

214-flutter-binary-clock

A Binary #FlutterClock
Dart
26
star
83

faunadb-basics

Build a simple API with FaunaDB and Node.js
JavaScript
26
star
84

168-multi-file-upload-angular-firebase

Episode 168 - Upload Multiple Files Concurrently to Firebase Storage
TypeScript
26
star
85

nest-cloud-functions

NestJS + Firebase Cloud Functions Example
TypeScript
25
star
86

196-sendgrid-email-cloud-functions

Episode 196 - Send Transactional with SendGrid and Cloud Functions
TypeScript
24
star
87

165-angular-router-animations

Episode 165 - A Complete Guide to Angular Router Animations
TypeScript
24
star
88

55-angularfire-google-auth

Episode 55 (Revised) - Firebase Google OAuth with @angular/fire + Firestore
TypeScript
23
star
89

code-this-not-that-python-edition

10 tips to make your code more Pythonic
Python
22
star
90

188-firebase-vs-amplify

Episode 188: Comparison of Firebase to AWS Amplify
JavaScript
21
star
91

nuxt3-firebase-starter

Basics SSR and Hydration with Nuxt3 and Firebase
Vue
21
star
92

216-flutter-ipod

Episode 216 - Build the Classic iPod UI with Flutter
Dart
20
star
93

181-cloud-functions-task-queue

Episode 181 - Schedule dynamic background jobs with Firebase Cloud Functions & Firestore
TypeScript
19
star
94

203-algolia-firestore-mvp

Episode 203 - Full-text Search with Algolia
TypeScript
19
star
95

201-cloud-functions-sql-typeorm

Episode 201 - MySQL & TypeORM with Firebase Cloud Functions
TypeScript
18
star
96

159-angular-universal-cloud-functions

Episode 159 - Deploy Angular Universal to Firebase Cloud Functions or AppEngine
TypeScript
18
star
97

meilisearch-firebase

Run MeiliSearch on Firebase & Google Cloud
JavaScript
18
star
98

d3-firebase-demo

Build a bar chart using a Vite Vanilla JS project with D3 and Firestore
JavaScript
18
star
99

212-stripe-svelte

Use Stripe Payments in Svelte
HTML
16
star
100

147-cloud-build-firebase

Episode 147 - Continuous Integration and Delivery with Cloud Build + Firebase
JavaScript
15
star