Skip to content

A house auction project using truffle, ganache-UI and React

License

Notifications You must be signed in to change notification settings

hyc0812/auction-house-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auction-house-app

Prerequisite

  • Node.js
  • Truffle
  • Ganache
  • MetaMask

Run the project

  1. go to root directory of this project (/auction-house-app), run:
cd client
npm install

NOTE: using sudo su if necessary.

  1. Run Ganache UI, and modify the RPC Server as: HTTP://127.0.0.1:8545
  2. Import the first two account into MetaMask
  3. In CLI go back to the root directory of this project:
cd ..
  1. Run the following:
truffle compile
truffle migrate
  1. Copy the second contract address ( named "Auction" ) and paste into line 6 of App.js file at /auction-house-app/client/src. Save the file App.js;
  2. go to**/auction-house-app/client** and run the app:
cd client
yarn start
  1. Connect your two account to localhost:3000
  2. play and have fun!