Playground

The NEO•ONE Playground showcases what’s possible with NEO•ONE.

This guide will walk you through getting started with the NEO•ONE Playground.



Requirements

  • Node >= 10s.16.0 (We recommend the latest version)
  • a package manager: yarn OR npm (distributed with Node)

Installation

git clone https://github.com/neo-one-suite/neo-one-playground.git
cd neo-one-playground
# npm install
yarn install

Compile

# npx neo-one build
yarn neo-one build

This will start up a local network, compile the smart contracts located in the neo-one/contracts directory and publish them to your local network. Add --watch to listen for changes to the smart contracts and trigger automatic recompilation and deployment.


Start the Playground

# npm start
yarn start

This will open a browser window with the playground. Modify the files in the src directory to get a feel for using the NEO•ONE client APIs.


Run the tests

# npm test
yarn test

Smart contract tests in the playground are written in Jest and are located in the src/__tests__ directory. Play around with them to see how easy it is to test smart contracts!

Edit this page
  • Quick Start
  • Getting Started
  • Environment Setup
  • CLI
  • Playground
  • Contract Mixins
Previous Article
CLI
Next Article
Contract Mixins
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE