DRepo is a decentralized web-based code storage platform made with Ethereum Blockchain.
-
Clone the repository:
git clone https://github.com/dipayandas24/DRepo_TDoC.git cd DRepo_TDoC -
Install dependencies:
- Navigate to the frontend folder:
cd frontend npm install- Return to the root directory and install Truffle dependencies:
npm install -g truffle
-
Compile smart contracts:
truffle compile
-
Migrate smart contracts to the local blockchain or testnet:
truffle migrate
- Start the local Ethereum blockchain (if using Ganache):
ganache-cli- Run the frontend:
cd frontend
npm start- Open the application in your browser at
http://localhost:3000.
To run tests for the smart contracts, use the following command:
truffle test