Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.89 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.89 KB

Distributed File Manager using IPFS, CELO and ReactJS

There are few requirements to like Node.js should be installed in your system and Metamask in your browser. You need to setup your Metamask with Celo RPC URL (See step 7).

Steps to run this project


1. Clone the repository - Clone this repository by running the following command in your terminal.

git clone https://github.com/rajranjan0608/dfm

2. Install dependencies - Go to the dfm directory and install the required dependencies using npm.

cd dfm
npm install
sudo npm install -g truffle

3. Make a CELO wallet - Make a Celo wallet at here and save your MNEMONICS in the .env file as instructed below. Also, fund your wallet address here.

4. Put your MNEMONIC in .env file - Make a new file .env inside the src directory and put your Celo mnemonic like shown below (double quotes are neccessary).

MNEMONIC="<your_mnemonic>"

5. Migrate your smart contract - Run the following command in the src directory to deploy your smart contract on the Celo network.

truffle migrate --network alfajores --reset

6. Start the ReactJS application - Use the following command to start the ReactJS server (in dfm directory).

npm start

7. Metamask - Celo Alfajores setup - In the Metamask extension, add a custom RPC by clicking at the network dropdown in the center of the extension. Fill the details as shown in the below image.



Network Name - Celo Alfajores
New RPC URL - https://alfajores-forno.celo-testnet.org
Chain ID - 44787
Currency Symbol - CELO


Now open the browser and go to http://localhost:3000 to interact with the Celo DApp