ONGAESHI Litepaper
  • Overview
  • Vision & Mission
  • Ecosystem
  • Key Stakeholders
  • Key Tools
  • System Overview
    • System Diagram
      • Smart Contract Diagram
      • Infrastructure Diagram
    • Smart Contract
      • Course Token (ERC 721)
      • Course Token Factory
      • Course Token Event
      • Talent Match
      • Deployed Smart Contract
      • Setting Up Environment
    • Public API
      • NFT API
        • View NFT Collection
        • View NFT Metadata
      • Talent
        • Request to Borrow NFT
      • Sponsor
        • Accept Talent Request
        • Reject Talent Request
      • Loan Details
  • Other
    • Audit
    • How To Contribute
Powered by GitBook
On this page
  • URL
  • Clone Repo
  • Installation
  • Create local node
  • Test
  1. System Overview
  2. Smart Contract

Setting Up Environment

PreviousDeployed Smart ContractNextPublic API

Last updated 11 months ago

URL

Clone Repo

$ git clone

Installation

$ npm install

Create local node

Use the SAMPLE-secrets.json file to create a secrets.json file

Add in the RPC and Private Key

# start the node
$ npx hardhat node

# run a script on localhost
$ npx hardhat run .\filename.js --network localhost

Test

# run unit test
$ npx hardhat test.\filename.js --network localhost
https://github.com/Institution-for-a-Global-Society/ongaeshi-nft-mgmt-smtcon.git