Fireship · @fireship

I built a $5 chat app with Pocketbase & Svelte. Will it scale?

Uploaded December 19, 2022 · Length 13:34

I built a $5 chat app with Pocketbase & Svelte. Will it scale?

Summary

Building a $5 chat app with Pocketbase & Svelte, deploying to Linux server on Leno.io.

  • pocketbase tutorial
  • svelte chat app
  • leno.io tutorial
  • self-hosted backend
  • firebase alternative

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    what you're looking at is the actual

  2. 0:02

    side projects directory on my computer

  3. 0:04

    none of these side projects have gone on

  4. 0:06

    to become the next Facebook yet but I

  5. 0:07

    have not failed I've just found hundreds

  6. 0:09

    of apps that don't work if you're a

  7. 0:11

    developer entrepreneur it's extremely

  8. 0:13

    important not to over engineer things

  9. 0:15

    Andy jassy once said invention requires

  10. 0:18

    two things one the ability to try lots

  11. 0:20

    of experiments and two not having to

  12. 0:22

    live with the collateral damage of

  13. 0:24

    failed experiments in today's video

  14. 0:25

    we'll build a full stack chat app using

  15. 0:28

    pocket base and svelte then deploy it to

  16. 0:30

    a Linux server on the Node for just five

  17. 0:32

    dollars I call this the Spock stack and

  18. 0:34

    prepare to be amazed at how quickly it

  19. 0:36

    can get things done stupidly I made this

  20. 0:38

    demo public so you can actually try it

  21. 0:40

    out on the internet right now this is

  22. 0:42

    not my first rodeo and I know you guys

  23. 0:43

    will spam it with the most horrific

  24. 0:45

    comments imaginable but this time

  25. 0:46

    messages can be moderated with Community

  26. 0:48

    reactions if a comment gets pooped on

  27. 0:50

    five times it disappears from the UI the

  28. 0:53

    back end magic behind this application

  29. 0:55

    is a relatively new tool called pocket

  30. 0:57

    base which is like a free and open

  31. 0:58

    source Firebase written and go that

  32. 1:01

    provides user authentication along with

  33. 1:03

    a real-time database powered by SQL Lite

  34. 1:05

    but unlike any other base out there it

  35. 1:07

    compiles everything to a single

  36. 1:09

    executable and that means to self-host

  37. 1:11

    it all you need is one little server

  38. 1:13

    which costs less than your Grande soy

  39. 1:15

    milk macchiato Simplicity is the

  40. 1:17

    ultimate sophistication but today we'll

  41. 1:19

    find out if the Simplicity of pocket

  42. 1:20

    base can actually scale to kick things

  43. 1:22

    off we're going to start things in

  44. 1:23

    Reverse by deploying pocket base to a

  45. 1:25

    Linux server in the cloud luckily for us

  46. 1:27

    lenode has sponsored this video which

  47. 1:29

    means I get to Make It Rain with a

  48. 1:31

    hundred dollars in free credits for

  49. 1:33

    everyone watching this video for those

  50. 1:34

    that don't know lenode is one of the

  51. 1:36

    original cloud providers that's been

  52. 1:37

    around since 2003. their platform is a

  53. 1:40

    perfect fit for this project because

  54. 1:42

    like spelled and pocketbase it's famous

  55. 1:44

    for Simplicity unlike big cloud

  56. 1:46

    providers you can get a Linux server up

  57. 1:48

    and running with a few clicks with flat

  58. 1:49

    predictable pricing that won't cause

  59. 1:51

    collateral damage later after you

  60. 1:53

    register go to the dashboard and click

  61. 1:55

    the button to create a new node then

  62. 1:57

    choose an image with your preferred

  63. 1:58

    Linux distro I'm going going with Debian