Node.js Express Starter

In this edition of Stripe Developer Office Hours, follow along as CJ Avilla walks through the fundamentals of Node.js and Express.

### Resources

- Express web framework https://expressjs.com/
- curl command line tool https://curl.haxx.se/
- dotenv https://www.npmjs.com/package/dotenv
- Stripe Webhooks Guide https://stripe.com/docs/webhooks/build
- Stripe Event Types https://stripe.com/docs/api/events/types
- Code: https://github.com/stripe-samples/developer-office-hours/tree/master/starter

### Presenter

CJ Avilla, Developer Advocate at Stripe - https://twitter.com/cjav_dev

### Table of contents

00:05 Introduction
02:20 See how to install with Stripe CLI
03:06 Create client and server directories
03:18 Add boilerplate HTML
04:30 Install dependencies with npm
05:42 Create server.js
07:00 Test API call to Stripe
08:20 Setup Express.js
13:48 Add a GET routes
15:30 Make GET request from client
16:34 Chrome devtools overview
19:20 Add a POST route
22:42 Make POST request from client
29:15 Webhook handlers

### Support

If you have a question, please feel free to reach out to our support team on Discord at https://stripe.com/go/developer-chat.

### Updates

Sign up to stay updated with developer news: https://go.stripe.global/dev-digest

### Feedback

If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88.
#Stripe #Payments