Skip to content

A proof-of-concept single-page application built entirely in Go using the go-app framework, with hot reload.

License

Notifications You must be signed in to change notification settings

somenoe/go-spa-hot-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof of concept: go-app (SPA) client hot reload

This project is a proof of concept demonstrating a Single Page Application (SPA) built with Go, showcasing client hot reloading capabilities.

How it works

  1. The server exposes an endpoint /updated that returns the current timestamp.
  2. The client-side periodically fetches this timestamp.
  3. If the timestamp changes, it triggers a page reload.

Tools Used

  • air is used for rebuilding the server upon saving a source file.
  • go-app is used for creating SPAs with pure Go.
  • mage is used for build commands.

License

This project is licensed under the MIT License - see the LICENSE.md file for more details.

About

A proof-of-concept single-page application built entirely in Go using the go-app framework, with hot reload.

Topics

Resources

License

Stars

Watchers

Forks

Languages