Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/didikz/gosysmon-web
Simple web based system monitor built with Go
https://github.com/didikz/gosysmon-web
go golang htmx websocket
Last synced: 12 days ago
JSON representation
Simple web based system monitor built with Go
- Host: GitHub
- URL: https://github.com/didikz/gosysmon-web
- Owner: didikz
- Created: 2024-11-07T14:37:23.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-06T08:11:56.000Z (2 months ago)
- Last Synced: 2024-12-06T09:20:31.497Z (2 months ago)
- Topics: go, golang, htmx, websocket
- Language: HTML
- Homepage: https://blog.didiktrisusanto.dev/building-simple-real-time-system-monitor-using-go-htmx-and-web-socket?showSharer=true
- Size: 115 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoSysMon
Is a simple web based System Monitoring built with Go. It displays computer informations such are host, processes, memory, CPU, and disk. By using websocket, the data will automatically been refreshed within 5 seconds.
![alt text](screenshot.png "screenshot of system monitor")
> Learning reference: [https://www.youtube.com/watch?v=fBDUn7b9plw&list=LL&index=3&ab_channel=sigfault](https://www.youtube.com/watch?v=fBDUn7b9plw&list=LL&index=3&ab_channel=sigfault)
## Stacks
+ Go 1.23.1
+ HTMX
+ Websocket HTMX Extension
+ Tailwindcss
+ [Gopsutil](https://pkg.go.dev/github.com/shirou/gopsutil/v4)
+ [Websocket](https://github.com/coder/websocket)## Running The Application
+ Copy env file `cp .env.example .env` and adjust you desire port (default port is `8000`)
+ Install dependencies```bash
go mod tidy
```+ Run the application locally
```bash
go run ./cmd/main.go
```+ Visit `localhost:8000` or using your desired port defined in `.env` file