The service is installed on client PCs that periodically send Hostname and Net.Interfaces to the server.
Default url: http://localhost:17518/
- Directory:
server
- Module:
pc_server
- Libraries:
# Initialization
$ go mod vendor
# Development
$ go run .
# Production
## Linux
$ go build .
$ ./pc_server
# Windows
$ GOOS=windows GOARCH=386 CXX=i686-w64-mingw32-g++ CC=i686-w64-mingw32-gcc CGO_ENABLED=1 go build .
$ .\pc_server.exe
- Directory:
service
- Module:
pc_service
- Libraries:
- Identify PC: Machine ID
- Working with service: Service
- Http Client: Fasthttp
# Initialization
## Create a prod.go file with similar config as dev.go
## // +build prod
$ go mod vendor
# Development
$ go run . -run
# Production
## Linux
$ go build -tags prod
$ ./pc_service # run
$ ./pc_service -install # install service
$ ./pc_service -uninstall # uninstall service
## Windows
$ GOOS=windows GOARCH=386 CXX=i686-w64-mingw32-g++ CC=i686-w64-mingw32-gcc CGO_ENABLED=1 go build -tags prod
$ .\pc_service.exe # run
$ .\pc_service.exe -install # install service
$ .\pc_service.exe -uninstall # uninstall service
- Directory:
web
- Libraries:
- Builder: Parcel
- CSS Framework: Tailwindcss
- Progress: NProgress
- Working with date: Date-fns
# Development
$ npm run dev
$ npm run watch
# Production
$ npm run build