sarangparikh22 / temp-edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Education Platform

This repo comes with everything you need to start for education platform using smart contracts from a react app.

Setting Up

  1. Installation you can install Truffle globally

    npm install -g truffle  
    Install and start Ganache
  2. Clone the repo.

    git clone https://github.com/mankenavenkatesh/EduPlatform.git
    
  3. Compile and migrate the smart contracts.

    truffle compile
    truffle migrate
  4. In the client directory, we run the React app. Smart contract changes must be manually recompiled and migrated.

    // in another terminal (i.e. not in the truffle develop prompt)
    cd client
    npm run start
  5. Truffle can run tests written in Solidity or JavaScript against your smart contracts.

    truffle test
  6. Jest is included for testing React components. Compile your contracts before running Jest, or you may receive some file not found errors.

    // ensure you are inside the client directory when running this
    npm run test
  7. To build the application for production, use the build script. A production build will be in the client/build folder.

    // ensure you are inside the client directory when running this
    npm run build

About


Languages

Language:JavaScript 46.9%Language:Solidity 41.8%Language:HTML 7.4%Language:CSS 3.9%