cldnt
Requirements
- Internet connection
- Go 1.12.x (for development)
Installation
Installation on Mac OSX
brew tap oleewere/repo
brew install cldnt
Installation on Linux
Using wget:
CLDNT_VERSION=0.2.0
wget -qO- "https://github.com/oleewere/cldnt/releases/download/v${CLDNT_VERSION}/cldnt_${CLDNT_VERSION}_linux_64-bit.tar.gz" | tar -C /usr/bin -zxv cldntl
Using curl:
CLDNT_VERSION=0.2.0
curl -L -s "https://github.com/oleewere/cldnt/releases/download/v${CLDNT_VERSION}/cldnt_${CLDNT_VERSION}_linux_64-bit.tar.gz" | tar -C /usr/bin -xzv cldnt
Build
Build locally:
make build
Or build in docker image:
docker build -t oleewere/cldnt:latest .
Usage
# if it is installed
cldnt --help
# if it is built locally
./cldnt --help
Run in docker container (if it has already built)
docker run --rm oleewere/cldnt:latest --help
Currently only airports command is supported:
# see available parameters
cldnt help airports
# using it:
cldnt airports
# note: if latitude and longitude is not provided, the app will try to calculate those details by the public IP
# of course you can provide those parameters
cldnt airports --longitude 19.255592 --latitude 47.436933 --rows 5
Start web server with UI:
# It will start a web application on port 7777, checkout "localhost:7777"
cldnt serve
# or with docker command:
docker run --rm -p 7777:7777 oleewere/cldnt:latest serve