Product provenance through Supply-chain management.
After cloning the contents from gitlab, access the directory and install the following packages and follow the below instructions as required.
This project is developed on Nodejs, truffle and React Frameworks. Follow the below instruction to install required frameworks and tools for running the project.
- Run the install commands for installing nodejs and npm.
(a) Adding PPA for stable nodejs version.
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
(b) Installing Nodejs and NPM.
sudo apt install nodejs
(c) To check versions of nodejs and npm.
node -v
npm -v
- Run the install commands for installing ganache-cli.
npm install -g ganache-cli
- You have to install Truffle globally.
npm install -g truffle
- Run the following command from both Root project folder and Client folder to install the npm dependencies.
npm install
- Run the development console.
truffle develop
- Open another Terminal in Root Project Folder. Compile and migrate the smart contracts.
compile
migrate
- In the
client
directory, we run the React app.
cd client
npm start`