Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/somenoe/go-spa-hot-reload
A proof-of-concept single-page application built entirely in Go using the go-app framework, with hot reload.
https://github.com/somenoe/go-spa-hot-reload
go-app golang hot-reload proof-of-concept spa
Last synced: about 1 month ago
JSON representation
A proof-of-concept single-page application built entirely in Go using the go-app framework, with hot reload.
- Host: GitHub
- URL: https://github.com/somenoe/go-spa-hot-reload
- Owner: somenoe
- License: mit
- Created: 2025-01-04T05:34:44.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-01-04T05:43:59.000Z (about 1 month ago)
- Last Synced: 2025-01-04T06:27:56.534Z (about 1 month ago)
- Topics: go-app, golang, hot-reload, proof-of-concept, spa
- Language: Go
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://github.com/air-verse/air) is used for rebuilding the server upon saving a source file.
- [go-app](https://github.com/maxence-charriere/go-app) is used for creating SPAs with pure Go.
- [mage](https://github.com/magefile/mage) is used for build commands.## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for more details.