~/talk

Building a Serverless API With Google, Firebase and PostgreSQL

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [serverless, databases]
slides:none on file

Builds a static Middleman site that uses Firebase Functions and the Firebase realtime DB to power a Stripe checkout where the client writes a Stripe token directly to the DB and database-triggered Node functions charge the card, email customers via Drip, and finally replicate to PostgreSQL at compose.com for escape hatch and reporting. Covers rules vs HTTP triggers, admin SDK privileges, a painful recursive email loop bug, and a real-world surprise where analytics billing spiked from $25 to $2,000.

AI-written summary · about

  1. 0:00Introduction
  2. 0:58Robs website
  3. 1:30Success and failure
  4. 2:38Serverless confusion
  5. 3:03Best way to think about serverless
  6. 3:37Have you tried
  7. 5:14Inspiration
  8. 5:54Code
  9. 6:18What does this buy
  10. 7:43What you get
  11. 8:56Why
  12. 9:07Service lockin
  13. 9:24Internet of Things
  14. 9:57Firebase
  15. 10:19Firebase Pricing
  16. 11:19The Take Away
  17. 12:16Use Your Head
  18. 12:55Businesses Are Here To Make Money
  19. 13:15Volkswagen
  20. 13:41GoDaddy
  21. 14:07Be Prepared
  22. 14:18Trust No One
  23. 14:34Fun Stuff
  24. 15:03How Does It Run
  25. 15:23Authentication
  26. 16:22Firebase JSON
  27. 16:57Firebase Rules
  28. 17:43What are we building
  29. 18:05The mental leap
  30. 18:41Creating a static site
  31. 18:55Using middleman
  32. 19:29Static website
  33. 20:06Working with Firebase
  34. 20:36Stripe Checkout
  35. 21:23Firebase Events
  36. 22:41Stripe
  37. 22:58PCI Compliant
  38. 23:18JavaScript
  39. 23:52Firebase SDK
  40. 24:39Firebase Console
  41. 25:03Firebase Data Structure
  42. 25:57Firebase Node Code
  43. 26:42Pulling Data from Event
  44. 27:41Running asynchronous code
  45. 28:18Updating the checkout path
  46. 28:35Using ViewJS
  47. 28:48Using ViewFire
  48. 29:19Using Stripe
  49. 29:29Writing to Firebase
  50. 29:44Firebase Functions
  51. 31:09Triggering on Events
  52. 32:32Writing to Database
  53. 33:15Security
  54. 33:51Data Pathway Rules
  55. 36:17Validate vs Write
  56. 36:38A Whole as a Whole
  57. 37:09Option 2 HTTP Events
  58. 37:19Option 2 Ajax Post
  59. 37:36Option 3 HTTP on Request
  60. 38:14Option 4 Using Express
  61. 39:00Option 4 Missing Features
  62. 39:44Admin Database Ref
  63. 40:34HTTP Response
  64. 41:16Anonymous Authentication
  65. 42:37Notifications
  66. 43:00Functions
  67. 43:17Drip
  68. 43:34Automations
  69. 43:44Custom Events
  70. 44:42Custom Fields
  71. 45:07Admin Backend
  72. 45:49Why Am I Doing This
  73. 47:22Firebase Authentication
  74. 48:10Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.