acme-web
Table of contents
Preamble
This applications runs a Web server and it:
- runs an external command to create a JSON file (this functionality should be moved into this app)
- transform json object into html table
- serves json object through an API
- serves html pages
Compiling the program
You can install GO and copy/paste the followings:
git checkout main
git pull
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
PROG_VERSION=${LATEST_TAG:1}
BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
git checkout $LATEST_TAG
go build -ldflags "-s -w -X main.appVersion=${PROG_VERSION} -X main.buildTime=${BUILDTIME}" -o acme-web
Setting up systemd
Check acme-web.service in this repository