Clone of gasnow.org
Web app code here
The application connects to infura to get data from its ethereum full node and to coingecko to get market data. In order to do so the following env variables need to be setup (they can be placed in a .env
file):
INFURA_URL=https://mainnet.infura.io/v3
INFURA_PROJECT=<your_project_id>
GECKO_URL=https://api.coingecko.com/api/v3
To start the app during development
# run the app
make run
# test health endpoint
curl https://localhost:5000/health
# connect via websocket
wscat -c ws:https://localhost:5000/ws
# build
make build
# Run the newly built executable
bin/application
# build
docker build -t gasnow2 .
# run
docker run -p5000:5000 --env-file=.env --name gasnow2 gasnow2