This repo comes with everything you need to start for education platform using smart contracts from a react app.
-
Installation you can install Truffle globally
npm install -g truffle Install and start Ganache
-
Clone the repo.
git clone https://github.com/mankenavenkatesh/EduPlatform.git
-
Compile and migrate the smart contracts.
truffle compile truffle migrate
-
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
-
Truffle can run tests written in Solidity or JavaScript against your smart contracts.
truffle test
-
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
-
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