Server components are a really cool way to create realtime experiences in Gleam. This video will walk you through how to use them to create them using Lustre.
Check out Lustre: https://lustre.build/
Ensure you have Gleam and Erlang installed on your system. You can find instructions for installing Gleam here.
Build the client artifacts:
cd client
gleam run -m lustre/dev build --outdir=../server/priv
Run the server:
cd server
gleam run
The server will be running on port 8000.