Testing out deploying a smart contracts to create tickets for people to buy with ETH.
-
Make sure you have Truffle installed globally.
npm install -g truffle
-
Install Ganache and create a new workspace
-
Alternatively, you can run the Truffle development console instead of Ganache UI.
truffle develop
-
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with
truffle
.compile migrate
-
Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.
// inside the development console test // outside the development console truffle test
-
Where can I find more documentation?
Start by reading the Truffle documentation.