/url-shortener-web3j

Primary LanguageJavaApache License 2.0Apache-2.0

url-shortener-web3j

This is a adaptation of URL Shortener URL Shortener to incorporate web3j sdk.

Try

Start Ganache development network, and deploy AKAP.sol from AKAP contracts directory:

$ configure environment varaible in app.properties [development|demo] 

Start embedded server with gradle run task:

$ ./gradlew -t run

Start your browser at:

$ http://localhost:8080/

demo snippet

Generating Contract Wrapper (Optional)

The web3j contract wrappers can be generated using the following command:

$ epirus generate truffle generate —truffle-json URLShortener.json —outputDir src/main/java —package demo.urlshortener