consulting and development

maps, GIS and geospatial software

My First Ethereum Project Ever

Someone encouraged me recently to get started with Ethereum and web3.js and this uber simple project was my first attempt.

My objective was to get to know the Ethereum javascript api using web3.js, so I aimed to keep the Solidity part as simple as possible. There’s a smart contract called “Foo” which has two methods – setFoo and getFoo which accepts/returns a bytes32 variable that can be converted to a string. The simple Solidity code was compiled to byte-code by the browser based IDE remix and is deployed at run-time to a local test node through the javascript api.

The code is in this repo:

You can run it locally with Docker using these public images:

Both Docker images are based on the lightweight node:alpine image.

Or download the github repo and follow the README instructions.



Post navigation