GithubHelp home page GithubHelp logo

nft-exchange's Introduction

Smart Contract Starter

[Description]

Setup

Make sure you have the following installed globally:

node 8

TestRPC 6: npm install -g ethereumjs-testrpc

Then run npm install

chmod +x ./scripts/** to grant execute permissions on the scripts directory

Compile

Recompile contracts and build artifacts.

$ npm run compile

Deploy

Deploy contracts to RPC provider at port 8545.

$ npm run testrpc
$ npm run deploy

Test

Run npm run compile before first test run, and after any changes to the .sol files

$ npm test

Run npm run test:coverage to run with coverage reporting

Deployment Setup

Add secrets.json to the project root

// secrets.json
{
  "mnemonic": "<some mnemonic>",
  "infura_apikey": "<your infura key>"
}

Go to https://iancoleman.github.io/bip39/, click "Generate". Add BIP39 Mnemonic to "mnemonic" value in secrets.json

Add address from the BIP39 page to MetaMask. Send it some rinkeby Ether, or get it from the faucet on https://www.rinkeby.io

Go to https://infura.io/register.html to register for Infura. Paste your API key into "infura_apikey" value in secrets.json

npm run deploy-rinkeby to deploy to rinkeby

nft-exchange's People

Contributors

mikec avatar akuanti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.