Fruit Swap Decentralized App is a sample project showcasing smart contracts hosted on the FTM network and a UI hosted on GitHub Pages
Site: https://midnjerry.github.io/smart-contract-example
- Install npm
- Install truffle
npm i -g truffle
- Install ganache-cli
npm i -g ganache-cli
- Create {project}/contracts directory and
cd
to {project}/contracts npm init
(to create package.json)npm i @openzeppelin/contracts --save
truffle init
- Visit OpenZeppelin Contract Wizard for quick templates https://docs.openzeppelin.com/contracts/4.x/wizard