// Make sure you have metamask and ganache installed
- Clone the repository Blogs_App_Blockchain
- Run command "npm install" to install all the related modules and to resolve the dependencies.
- Change directory to blogs-app inside Blogging Platform folder.
- Run commands "yarn add" and "npm install" here.
- Open deploy.js and replace the private key and accountId with the one from ganache application.
- Run "node deploy.js" in the terminal. It will return ABI and address where the contract have been deployed.
- Copy the abi and address and paste it the file abi.js present in the blogs-app/src/components directory.
- Now run the App.js file by running the command "yarn start" command inside blogs-app directory.
- The program successfully runs on localhost:3000. Visit localhost:3000/home to visit the front page and allow metamask to connect to the website.
- You can add new blogs using the metamask account and then view that blog on localhost:3000/home
Note: Frontend have been taken from "Material-UI Examples" and changed according to the usage.