Vaccine Control DApp based on Ethereum Blockchain
This application was used in IMasters Webminar, the presentation PDF is here, in portuguese (pt-br) 😛
This is a proof-of-concept project to explain how Smart Contracts works on Ethereum blockchain platform. The main goal is to create a registration control for vaccines under blockchain to enable more control and allow third party solutions to get updated information without paper dependencies.
The main screen will show the first and last name connected to the current digital wallet and related vaccines registered. This wallet usually supported by Metamask.
For new users and vaccine updates, first you need to click on "Create or change person identification".
Once you have a identification ready, move to "Add vaccine" and select the proper vaccine and fill the fields to register or update a new one.
Follow the steps below to download, install, and run this project.
Install these prerequisites to follow along with the tutorial. See free video tutorial or a full explanation of each prerequisite.
- NPM: https://nodejs.org
- Truffle: https://github.com/trufflesuite/truffle
- Ganache: http://truffleframework.com/ganache/
- Metamask: https://metamask.io/
git clone hhttps://github.com/michelpf/bck-eth-dapp-vaccine-control
$ cd bck-eth-dapp-vaccine-control
$ npm install
Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance.
$ truffle migrate --reset
You must migrate the election smart contract each time your restart ganache.
See free video tutorial for full explanation of these steps:
- Unlock Metamask
- Connect metamask to your local Etherum blockchain provided by Ganache.
- Import an account provided by ganache.
$ npm run dev
Visit this URL in your browser: http://localhost:3000