Configuring Dockerbase
Antlia Architecture

Setup Antlia Nodes

To set up Antlia nodes, clone the code from Antlia:
1
https://github.com/antlia-io/antlia-sdk
Copied!
Run the following command to start nodes:
1
make install
2
make build
3
make build-docker-antliadnode
4
docker-compose up
Copied!

Setup Lite Client

Run the following command to start lite client:
1
antliacli rest-server --chain-id=antlias-test-01 --laddr=tcp://0.0.0.0:1317 --node tcp://localhost:26657 --trust-node=false --home node1/antliacli
Copied!
You can set path to any node
1
e.g --home node1/antliacli
Copied!

Setup Explorer

Prerequisites Required for setting up the explorer:
  1. 1.
    Install nodejs v11.15.0
  2. 2.
    Install Meteor
  3. 3.
    Install Yarn
Setup the MongoDB using the following commands:
1
sudo apt update
2
sudo apt install -y mongodb
3
sudo systemctl status mongodb
Copied!
Create User on MongoDB Type following in side MongoDB:
1
db.createUser(
2
{
3
user: "username",
4
pwd: "password",
5
roles: [ { role: "readWrite", db: "antlia" } ]
6
}
7
);
Copied!

Manual Method:

Clone the project from Antlia:
1
git clone https://github.com/antlia-io/explorer.git
Copied!
Run following command to generate build:
1
sh build.sh
2
cd bundle/programs/server/
3
npm install
4
cd ~/explorer/bundle
Copied!
Run the following command to start explorer:
1
PORT=3000 ROOT_URL=http://localhost/ MONGO_URL='mongodb://{username}:{password}@{IP}:27017/antlia' METEOR_SETTINGS="$(cat settings.json)" meteor node main.js
Copied!
Setup Explorer using Docker:
To Get genesis file run the following command:
1
https://raw.githubusercontent.com/antlia-io/Antlia-Explorer/antlias/development/settings.json
Copied!
To run the docker:
1
docker run -d -p 3000:3000 -e MONGO_URL=mongodb://{username}:{password}@{IP}:27017/antlia -e METEOR_SETTINGS="$(cat settings.json)" --name explorer rnssolutions/explorer:0.1.5
2
Copied!

Setup Wallet

Lite Proxy

Clone the lite-proxy:
1
git clone https://github.com/antlia-io/lite-proxy.git
2
cd lite-proxy
Copied!
Install the Certificated:
1
yarn install
2
yarn certificates
Copied!
To run the proxy:
1
yarn proxy
Copied!
By default it will run on: https://lcd.testnet.antlia.rnssol.com
to change this update value of target in proxy.js

Wallet URL shortener:

To Setup url shortener clone the code:
1
git clone https://github.com/antlia-io/url-shortner.git
2
cd url-shortner
3
docker-compose up
Copied!

Wallet Docker Container:

Type the following command in terminal to run front end of wallet
1
docker run -p 9080:9080 -d rnssolutions/antliawallet:1.0.4
Copied!

Wallet Manual Method

Clone the code from Antlia:
1
https://github.com/antlia-io/faucet-backend.git
Copied!
Run following command by update the endpoint url:
1
QRCODE=https://wallet.testnet.antlia.org FAUCET=https://proxy.testnet.antlia.org:8010/claim/wallet SHORTURL=https://s.testnet.antlia.org/encode/ CHAIN=antlias-test-01 STARGATE=https://proxy.testnet.antlia.org:9061 RPC=https://rpc.testnet.antlia.org yarn build
Copied!
Run following command to run wallet:

Set Faucet

Faucet consist of backend and frontend.
Setup faucet backend
Clone the code from Antlia:
1
git clone https://github.com/antlia-io/faucet-backend.git
2
cd faucet-backend
Copied!
set the configuration in .env set FAUCET_KEY with with address of validator.
set FAUCET_KEY with with address of validator set FAUCET_PASS with pass of validator set FAUCET_CHAIN with faucet chain set FAUCET_HOME with path to validator cli a sample configuration is given in the .env file to run the faucet:
1
./faucet
Copied!
Setup faucet frontend
Run the following command to run faucet frontend:
1
docker run -p 8080:8080 -d rnssolutions/antlia-faucet-frontend:0.0.9-rc
Copied!
Manual Method
Clone the code from Antlia:
1
https://github.com/antlia-io/antlia-faucet-stable.git
Copied!
Run the following command to build the faucet frontend:
1
NODE_ENV=production VUE_APP_CHAIN=antlias-test-01 VUE_APP_CLAIM_URL=https://proxy.testnet.antlia.org:8010/claim yarn build
Copied!
Update your end point in above command run following command to run faucet frontend:
1
yarn serve:dist
Copied!
Last modified 1yr ago