A detailed implementation of a decentralised supply chain. Built with Solidity and truffle.
This ReadMe file will guide you through the steps to set up and run this Truffle Solidity contract.
Before you can run this smart contract, you must have the following software installed on your system:
- Node.js and NPM (Node Package Manager)
- Truffle
- Ganache (or another Ethereum client)
-
Install Node.js and NPM: https://nodejs.org/en/download/
-
Install Truffle using the command: npm install -g truffle
-
Install Ganache by visiting: https://www.trufflesuite.com/ganache
-
Clone the project repository to your local machine using the command: git clone [repository-url]
-
Navigate to the project directory: cd [project-name]
-
Install the project dependencies using the command: npm install
-
Start Ganache and ensure it is running on the correct port and network (i.e. localhost:8545).
-
Compile the contract by running the command: truffle compile
-
Deploy the contract to the network by running the command: truffle migrate
-
Test the contract by running the command: truffle test
That's it!!