Skip to content

A sample Dapp for wallpaper shop. This is the term project for the Blockchain course.

License

Notifications You must be signed in to change notification settings

abhilashgahankari/BT_Final_Project

Repository files navigation

Wallpaper Shop DApp using Truffle Suite

This is a sample application using the Truffle Framework to interact with the Ethereum Blockchain(Distributed Application).

Pre-requisites

  • Install node >= v8 and npm

  • Install the Truffle suite

$ npm install truffle

Steps

  • Start the Ganache App

  • Create a new workspace in Ganache and point it to truffle-config.js in this repo

  • Test your Truffle code

$ truffle test
  • Compile your code
$ truffle compile
  • Run Migration
$ truffle migrate
  • For the Web FrontEnd, Run npm
$ npm install
  • Run the built-in web server
$ npm run dev
  • When you run the lite-server, the Web application will open in your Chrome browser. It will also pop-up a window to connect a MetaMask account.
  • Import a new Account in Metamask by entering the Twelve work Seed Phrase seen on Ganache.
  • Then, in Metamask, in "Networks" create a custom Network connection, by connecting it to IPC URL "http://127.0.0.1:7545" (You can give it any Network Name like "Ganache")
  • That's it ! Now try clicking on "Purchase" and you should be able to purchase a wallpaper from your wallpaperShop.

Reference