Minimum software required to run the service:
git clone https://github.com/Lineblocs/ari-apps.git
- api includes api functions which are connected to internals-api
- grpc includes protobuf files
- mngrs includes managing files
- types includes basic model types files
- utils includes common utils functions
This project uses gRPC for server side API and includes files that use protobuf.
To compile the protobuf files please use the following commands:
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
protoc --go_out=plugins=grpc:. *.proto
protoc --go-grpc_out=grpc lineblocs.proto
cd types
go test -v
Debugging issues by tracking logs
There are 4 log channels including console, file, cloudwatch, logstash Set LOG_DESTINATIONS variable in .env file
ex: export LOG_DESTINATIONS=file,cloudwatch
sudo snap install golangci-lint
Config .golangci.yaml file to add or remote lint options
sudo snap install pre-commit --classic
Config .pre-commit-config.yaml file to enable or disable pre-commit hook
- Install Docker on the machines you want to use it;
- Set up a registry at Docker Hub;
- Initiate Docker build to create your Docker Image;
- Set up your ’Dockerized‘ machines;
- Deploy your built image or application.
docker build -t ari-apps