Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including o2oprotocol with all npm packages installed. Try it out:

o2oprotocol lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("o2oprotocol/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

o2oprotocol v1.0.0

Smart Contracts (create and book listings) without directly interfacing with the Blockchain or IPFS.

boilerplate

This helpful Boilerplates that allow you to focus on what makes your DApp unique; includes Solidity Smart Contracts & Libraries, Front-end Views and more.

Initialize the application using NPM (Follow through, or if you're happy with default just go with npm init -y

npm init

Start by downloading Truffle (You can also install it globally by npm install -g truffle

npm install --save truffle

Install Web3 as well

npm install --save web3

Install .env for environment variable management

npm install --save dotenv

Also our trustee ganache-cli (You can also install it globally as it can come handy)

npm install --save-dev ganache-cli

Install a great linter and style enforcer for solidity (You can also use that globally)

npm install --save-dev solium

Install the following for test coverage

npm install --save-dev solidity-coverage

Initialize Truffle App (use truffle.cmd for window)

./node_modules/.bin/truffle init

Initialize Solium

./node_modules/.bin/solium init

We also need to create a sample .env file that inject environment variables would use (This file will be added to .gitignore and will remain local)

touch .env

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free