Truffle Boxes
To use most Truffle commands, you need to run them against an existing Truffle project. So the first step is to create a Truffle project.
You can create a bare project template, but for those just getting started, you can use Truffle Boxes, which are example applications and project templates.
Setup your system to use a Truffle box:
RSK has its own specialized Truffle Boxes:
- rsk-starter-box: This box comes with everything you need to start using smart contracts on the RSK Network. It includes network configs for Mainnet, Testnet and the SimpleStorage contract as an example for deployment.
- rsk-react-box: This box comes with everything you need to start using smart contracts from a react app on the RSK Network.
- rsk-next-box: in this box you'll find a basic starter pack. It includes Truffle and Next JS.
- rsk-react-express-box: in this box you'll find a basic starter pack. It includes Truffle, React and Express JS.
Tutorials
- rsk-starter-box: learn step-by-step on how to use the Truffle box rsk-starter-box
- rsk-pet-shop-box: this tutorial is a guide on how to use the petshop Truffle box, and on how to deploy smart contracts to multiple networks (Regtest and Testnet).
- rsk-next-box: this tutorial presents how to use the rsk-next-box, a basic starter pack including Truffle and Next JS.
- rsk-react-express-box: learn step-by-step on how to use the Truffle box rsk-react-express-box, which comes with React and Express working in any RSK network.