Installation

Installation #

Docker image #

$ docker pull nervatura/nervatura:latest

Snap package (Linux daemon) #

$ sudo snap install nervatura

Checking service status and last logs:

$ systemctl status -l snap.nervatura.nervatura.service

Default snap data and http.log path: /var/snap/nervatura/common

Node.js NPM #

$ npm install --save nervatura

Add a run script to your package.json file like this:

"scripts": { "nervatura": "./node_modules/nervatura/bin/nervatura" }

$ npm run nervatura

Winget (Windows Package Manager) #

$ winget install --id Nervatura.Nervatura --source winget

Prebuild binaries #

Linux and Windows

Other platforms #

$ git clone https://github.com/nervatura/nervatura.git
$ cd nervatura/service
$ CGO_ENABLED=0 GOOS=$(OS_NAME) GOARCH=$(ARCH_NAME) \
  go build -tags "$(TAGS)" -ldflags="-w -s -X main.Version=$(VERSION)" \
  -o $(APP_NAME) main.go

See more: Building Applications in GoLang

Configuration Options #

The application uses environment variables to set configuration options. It will be read from the .env.example file. Set the environment variables as needed!

The .env file can be created in the current working directory, where the command is executed (in development mode). The name and location of the configuration file can also be specified in the command line parameters:

$ nervatura -env /path/.env.example