Fireship · @fireship
I built a $5 chat app with Pocketbase & Svelte. Will it scale?
Uploaded December 19, 2022 · Length 13:34
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.
- 0:00
what you're looking at is the actual
- 0:02
side projects directory on my computer
- 0:04
none of these side projects have gone on
- 0:06
to become the next Facebook yet but I
- 0:07
have not failed I've just found hundreds
- 0:09
of apps that don't work if you're a
- 0:11
developer entrepreneur it's extremely
- 0:13
important not to over engineer things
- 0:15
Andy jassy once said invention requires
- 0:18
two things one the ability to try lots
- 0:20
of experiments and two not having to
- 0:22
live with the collateral damage of
- 0:24
failed experiments in today's video
- 0:25
we'll build a full stack chat app using
- 0:28
pocket base and svelte then deploy it to
- 0:30
a Linux server on the Node for just five
- 0:32
dollars I call this the Spock stack and
- 0:34
prepare to be amazed at how quickly it
- 0:36
can get things done stupidly I made this
- 0:38
demo public so you can actually try it
- 0:40
out on the internet right now this is
- 0:42
not my first rodeo and I know you guys
- 0:43
will spam it with the most horrific
- 0:45
comments imaginable but this time
- 0:46
messages can be moderated with Community
- 0:48
reactions if a comment gets pooped on
- 0:50
five times it disappears from the UI the
- 0:53
back end magic behind this application
- 0:55
is a relatively new tool called pocket
- 0:57
base which is like a free and open
- 0:58
source Firebase written and go that
- 1:01
provides user authentication along with
- 1:03
a real-time database powered by SQL Lite
- 1:05
but unlike any other base out there it
- 1:07
compiles everything to a single
- 1:09
executable and that means to self-host
- 1:11
it all you need is one little server
- 1:13
which costs less than your Grande soy
- 1:15
milk macchiato Simplicity is the
- 1:17
ultimate sophistication but today we'll
- 1:19
find out if the Simplicity of pocket
- 1:20
base can actually scale to kick things
- 1:22
off we're going to start things in
- 1:23
Reverse by deploying pocket base to a
- 1:25
Linux server in the cloud luckily for us
- 1:27
lenode has sponsored this video which
- 1:29
means I get to Make It Rain with a
- 1:31
hundred dollars in free credits for
- 1:33
everyone watching this video for those
- 1:34
that don't know lenode is one of the
- 1:36
original cloud providers that's been
- 1:37
around since 2003. their platform is a
- 1:40
perfect fit for this project because
- 1:42
like spelled and pocketbase it's famous
- 1:44
for Simplicity unlike big cloud
- 1:46
providers you can get a Linux server up
- 1:48
and running with a few clicks with flat
- 1:49
predictable pricing that won't cause
- 1:51
collateral damage later after you
- 1:53
register go to the dashboard and click
- 1:55
the button to create a new node then
- 1:57
choose an image with your preferred
- 1:58
Linux distro I'm going going with Debian


