LimeChain / backend-task-tester

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Env variables

API_PORT={number, ex.3040}

LANG={RUST|GO|NODE|JAVA}
ETH_NODE_URL={infura or alchemy endpoint}
DB_CONNECTION_URL={postgres connection string}
INTEGRATED=

Using the test tool

Set env variables (example setup)

export API_PORT="8080"
export DB_CONNECTION_URL="postgresql://localhost/postgres?user=postgres&password=password1234"
export ETH_NODE_URL=https://sepolia.infura.io/v3/b6e734b85b1f42fd94f9fddcbdf556ba

Postgres

docker run --name postgres --network my-app -p 5432:5432 -e POSTGRES_PASSWORD=password1234 -d postgres

Linux

wget https://github.com/LimeChain/backend-task-tester/raw/main/limetester-linux.sh
./limetester-linux.sh

macOS

wget https://github.com/LimeChain/backend-task-tester/raw/main/limetester-osx.sh
./limetester-osx.sh

Building the tool

If there are any changes to the tester's codebase make sure to rebuild and commit the binaries. For building use:

./build.sh

About


Languages

Language:Go 99.0%Language:Shell 1.0%