Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.45 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.45 KB

Ethereum Projansky Contract

An implementation of the [The Artist’s Reserved Rights Transfer And Sale Agreement](The Artist’s Reserved Rights Transfer And Sale Agreement) for ERC-721 tokens.

Installation

  1. Install js dependencies.
npm i
  1. Install the Truffle box inside of the directory your just created.

    truffle unbox hackingbeauty/react-dapp-boilerplate
  2. Start the dapp, then point your browser to localhost:3000. If you want to use yarn instead of npm, just nuke the node_modules directory and run the command yarn install.

    npm run start || yarn start
  3. Start your local blockchain (I use Ganache-CLI).

    ganache-cli
  4. Place your Smart Contract into the /contracts directory, then compile and migrate it.

    truffle compile
    truffle migrate
  5. Jest is included for testing React components and Truffle's own suite is incldued for Smart Contracts. Be sure you've compiled your contracts before running jest, or you'll receive some file not found errors.

    // Runs Jest for component tests.
    npm run test || yarn test
    
    // Runs Truffle's test suite for smart contract tests.
    truffle test
  6. To build the Dapp for production, use the build command. A production build of the entire Dapp will be placed in the /build folder.

    npm run build || yarn build