The NEO•ONE Playground showcases what’s possible with NEO•ONE.
This guide will walk you through getting started with the NEO•ONE Playground.
git clone https://github.com/neo-one-suite/neo-one-playground.git
cd neo-one-playground
# npm install
yarn install
# 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.
# 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.
# 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!