/smart-contract-example

Sample project with contracts and UI

Primary LanguageJavaScript

Fruit Swap Dapp

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

Environment Setup

  1. Install npm
  2. Install truffle npm i -g truffle
  3. Install ganache-cli npm i -g ganache-cli

Project Setup (Backend)

  1. Create {project}/contracts directory and cd to {project}/contracts
  2. npm init (to create package.json)
  3. npm i @openzeppelin/contracts --save
  4. truffle init
  5. Visit OpenZeppelin Contract Wizard for quick templates https://docs.openzeppelin.com/contracts/4.x/wizard

Project Setup (Frontend)