Skip to content

Auction Truffle Box that provides everything you need to quickly build, test and deploy Smart Contract and DApps based on the Auction example

License

Notifications You must be signed in to change notification settings

Diegoescalonaro/auction-truffle-box

Repository files navigation

Auction Truffle Box

This box comes with everything you need to start using Truffle to write, compile, test, and deploy smart contracts, and interact with them from a Auction dapp.

Installation

First ensure you are in an empty directory.

Run the unbox command using 1 of 2 ways.

# Install Truffle globally and run `truffle unbox`
$ npm install -g truffle
$ truffle unbox Diegoescalonaro/auction-truffle-box
# Alternatively, run `truffle unbox` via npx
$ npx truffle unbox Diegoescalonaro/auction-truffle-box

Compile and migrate the smart contracts.

$ truffle compile
$ truffle migrate

Run tests written in Solidity or JavaScript against your smart contracts.

$ truffle test

Start the react dev server.

$ cd client
$ npm start
  Starting the development server...

Build the application for production using the build script. A production build will be in the dist/ folder.

$ cd client
$ npm run build

From there, follow the instructions on the hosted React app. It will walk you through using Truffle and Ganache to deploy the Auction.sol contract, making calls to it, and sending transactions to change the contract's state.

About

Auction Truffle Box that provides everything you need to quickly build, test and deploy Smart Contract and DApps based on the Auction example

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published