chirper

command
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 5 Imported by: 0

README

Chirper: a simple real-time twitter clone

The example demonstrates: progressive enhancement, form validation and real-time changes.

Start without javascript

index_no_js.html is a plain html file which is handled by the route function NoJSIndex. See it in action:

go run .
open http://localhost:9867/nojs

The above page works even if javascript is disabled in the browser.

Enhance with the alpinejs client

index.html is an html file with javascript sprinkled using the alpinejs client. It is handled by the route function Index. See it in action:

open http://localhost:9867

Open two tabs at: http://localhost:9867. Add a chirp in one and see it broadcasted to the second tab instantly.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL