lza_menace d9b7629931 | 4 years ago | |
---|---|---|
src | 4 years ago | |
static/css | 4 years ago | |
templates | 4 years ago | |
.dockerignore | 5 years ago | |
.gitignore | 4 years ago | |
Cargo.lock | 4 years ago | |
Cargo.toml | 4 years ago | |
Dockerfile | 4 years ago | |
README.md | 5 years ago | |
docker-compose.example.yml | 5 years ago | |
docker-compose.yml | 5 years ago | |
dummy.rs | 5 years ago |
README.md
Wownero Explorer
A simple web interface for searching the Wownero blockchain.
Quick-Start
Docker
The fastest way to get it up and running to test it locally is to use the pre-made Docker container:
export DAEMON_URI=http://so.wow.candy.surf:34568
docker run -d \
--name wownero-explorer \
--rm \
-p 80:8000 \
-e DAEMON_URI=$DAEMON_URI \
lalanza808/wownero-explorer:latest
You could also just use docker-compose
, though it will download a reverse proxy image:
export DAEMON_URI=http://so.wow.candy.surf:34568
docker-compose up -d
Navigate to http://localhost/ to browse the explorer.
Rust
Alternatively, if you'd like to build/run using native Rust tools, follow these steps:
- Install Rust: https://www.rust-lang.org/tools/install
- Clone this repo:
git clone https://git.wownero.com/lza_menace/wownero-explorer && cd wownero-explorer
- Pin the nightly version of rust to the local directory:
rustup override set nightly
- Pick a Wownero node if you don't have one and apply the
DAEMON_URI
environment variable:export DAEMON_URI=http://so.wow.candy.surf:34568
- Run the application:
cargo run
- Navigate to http://localhost:8000/
Full Installation
I'm using Traefik as a reverse proxy in order to handle automatic TLS certification with Let's Encrypt and to avoid manage Nginx configs. If you want to run the full installation you will need a registered domain and control of DNS records.
I don't feel like paying for a cluster for this simple app so I'm using docker-compose
on a single box that I can recreate easily and often to avoid config drift.
- Create new file,
docker-compose.prod.yml
as a copy ofdocker-compose.yml
- Uncomment labels under
wownero-explorer
service - Change labels to match external DNS name
- Set
${ACME_EMAIL}
either as hardcoded string or pass as environment variable - Run
docker-compose -f docker-compose.prod.yml up -d
Questions?
Ask around in IRC: https://webchat.freenode.net/?room=#wownero