Explorer-api runs as a standalone SprinBoot application and expose RestApi to explore Nilu and other eth-based crypto currencies. It connects directly to a Gilu RPC, hence you can setup your own private Nilu Explorer if you wish. No need for servers, hosting or trusting any third parties to display chain data.
Discuss this project at: discord.io/nilu
Follow us on Twitter NiluPlatfrom
The project is built on a Java8+, SpingBoot, Web3J and MongoDB as the DBMS. Use Web3J to listen to an Ethereum RPC Backend, parse generated blocks and then store usefull information in database for further Queries.
If you run the project in you computer, please make sure you have the following installed and running properly:
- JDK1.8+
- MongoDB
- Maven
git clone https://github.com/NiluPlatform/explorer-api.git
Then you can run it in IDE or via command line and browse to the project at localhost:8089
You can run the Explorer-api with "docker run" or Docker Compose.
After you cloned the source go to explorer-api directory:
mvn clean package
docker build --build-arg JAR_FILE=target/explorer-0.0.1-SNAPSHOT.jar -f Dockerfile -t nilu/explorer .
Then you can use docker images to run the Explorer. If you run in docker, you should first run mongodb image
docker run -p 27017:27017 -v $PWD/db:/mongo/db -d mongo
docker run --name nilu-api --link you_mongodb_image_name:mongo -p 8089:8089 -t nilu/explorer
After you run the docker build command above, there is an image named nilu/explorer in the docker container.
In explorer-api directory, you can run this command:
docker-compose up -d
You started all the services