https://github.com/alxndr13/wireguard_dashboard
Playground project to test alpine.js in combination with golang and embedded files in binaries
https://github.com/alxndr13/wireguard_dashboard
alpinejs golang wireguard
Last synced: 3 months ago
JSON representation
Playground project to test alpine.js in combination with golang and embedded files in binaries
- Host: GitHub
- URL: https://github.com/alxndr13/wireguard_dashboard
- Owner: alxndr13
- License: mit
- Created: 2021-11-09T18:32:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-15T20:36:58.000Z (over 3 years ago)
- Last Synced: 2025-02-27T06:00:05.001Z (3 months ago)
- Topics: alpinejs, golang, wireguard
- Language: Go
- Homepage:
- Size: 74.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Wireguard Dashboard
This project is a playground to learn more about alpine.js, embedding files in go binaries and using go-gin as a web framework.

## What this program does
Uses the wireguard client to retrieve all active wireguard devices and exposes them via a REST API available at `/info`.
Provides a frontend, written in alpine.js (thanks for the help [@andaryjo](https://github.com/andaryjo)) and plain html which is available at `/dashboard`. Those html files are embedded in the final go binary.
## Environment Variables
```bash
WG_EXTERNAL_URL="http://localhost:3001"
WG_BIND_ADDRESS="localhost:3001"
```## Development Setup
I'm using [air](https://github.com/cosmtrek/air) for the automatic reload upon changes.
To start the app:
```bash
sudo air
```The app is then available at `localhost:3001`. (when using defaults)