How to Install Ubiquity

The installation of Ubiquity varies for each client. 

 

Language How to install Ubiquity Readme File
JAVA Add a repositories section to your build.gradle file:

repositories {

    maven {

        url “https://gitlab.com/api/v4/projects/26939001/packages/maven”

        name “ubiquity-client-gitLab”

    }

}

Add a dependencies section:

dependencies {

implementation group: “com.gitlab.blockdaemon”, name: “ubiquity-client”, version: “0.0.2”

implementation “org.web3j:core:4.8.4”

}

JAVA README
Python To install in your global Python installation with pip, run the following from the repository’s root:

$ pip install -e .

To install using virtual environments:

$ python -m venv env

$ source testenv/bin/activate

$ pip install -e .

Python README
Go Pulling ubiquity-go-client dependency

go get gitlab.com/Blockdaemon/ubiquity/ubiquity-go-client

Note: You may need to add this into your ~/.gitconfig in order to make it work with GitLab sub-modules:

[url “ssh://git@gitlab.com/”]

  insteadOf = https://gitlab.com/

Go README
TypeScript To build and compile the typescript sources to javascript use:npm install

npm run build

To pull the client from the gitlab repo you will need to add some configuration to the “.npmrc”.

Echo “@ubiquity:registry=https://gitlab.com/api/v4/projects/27274533/packages/npm/”>>.npmrc

echo “//gitlab.com/api/v4/projects/27274533/packages/npm/:_authToken=${AUTH_TOKEN}”>>.npmrc

echo “always-auth=true”>>.npmrc

TypeScript README