Welcome to the course! In this first episode, we kick things off by introducing what we'll be doing: setting up Sockety in a fresh Laravel project to broadcast real-time events, both on public and private channels. Sockety is a great, fast, and affordable alternative to paid services like Pusher, and it integrates nicely with Laravel's built-in broadcasting tools.
We start by spinning up a new Laravel app, walking through the basic installation and getting the development server running. After setting up our database configuration (you can use MySQL or whichever DB you prefer), we migrate the initial tables to make sure everything works.
Next, we install Laravel Breeze. This gives us some quick authentication scaffolding, which we'll need later in the course when working with private channels—private channels require users to be signed in, so this step is important. We go through installing Breeze, running the necessary npm commands, and making sure everything is working by registering a dummy user and logging in.
For the moment, we set up the basics you'd need to receive and listen for broadcast events in JavaScript. Nothing fancy yet, but we’ll be able to see the events dumped to the browser console. Down the line, you can hook this up to your favorite frontend framework (like Vue.js) if you want.
That's our intro and setup done! In the next episode, we'll actually get Sockety up and running, and dive into the real-time fun.