svelte-go-ws Svelte Themes

Svelte Go Ws

Exploring websockets via Svelte in the frontend with golang backend

Svelte + websocket + golang + authentication

What

  • Svelte frontend
  • Vanilla websocket
  • Golang server to provide echo with an attempt at security in the first message

Get started

  • 2 terminals
  • 1 browser
  • Learnalist credentials optional for the authentication step

Frontend

Install the dependencies...

npm install

...then start Rollup:

npm run dev

Backend

go run main.go

Browser

Goto "http://localhost:8080/"

Reference

Top categories

Loading Svelte Themes