Skip to content

A detailed implementation of a decentralised supply chain. Built with Solidity and truffle.

Notifications You must be signed in to change notification settings

MeisterJustice/coffee-supply-chain

Repository files navigation

coffee-supply-chain

A detailed implementation of a decentralised supply chain. Built with Solidity and truffle.

ReadMe: Running a Truffle Solidity Contract

This ReadMe file will guide you through the steps to set up and run this Truffle Solidity contract.

Prerequisites

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)

Installation

  1. Install Node.js and NPM: https://nodejs.org/en/download/

  2. Install Truffle using the command: npm install -g truffle

  3. Install Ganache by visiting: https://www.trufflesuite.com/ganache

Running the Contract

  1. Clone the project repository to your local machine using the command: git clone [repository-url]

  2. Navigate to the project directory: cd [project-name]

  3. Install the project dependencies using the command: npm install

  4. Start Ganache and ensure it is running on the correct port and network (i.e. localhost:8545).

  5. Compile the contract by running the command: truffle compile

  6. Deploy the contract to the network by running the command: truffle migrate

  7. Test the contract by running the command: truffle test

That's it!!

About

A detailed implementation of a decentralised supply chain. Built with Solidity and truffle.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published