This project is an extended version of @HydraPhyzer Decentralized-Google-Drive with extra security to the files
Use node version 18.17.1 LTS
Create an account in Pinata copy the key requirements and save it in another file for further use
You need to enter the required pinata content in the .env files
While creating an API key in Pinata don't forget to turn off the Limit Max Uses
Install meta mask in the browser in which you want to run the application and add a custom network in it to your local hardhat blockchain
Open the meta mask on the left side top corner there will be a drop-down to select a network
At the bottom of the drop-down, there will be an option named Add network click on it
Now click on Add Network manually at the bottom of the page and give it a name as your wish
The chain id is
1337
The currency symbol is
ETH
The RPC URL will be the port in which your local hardhat blockchain is running
In the main project directory run the following command
npx hardhat node
Now start another terminal in the same directory and run the following command to deploy the smart contract
npx hardhat run Scripts/Deploy.js --network localhost
Now open one new terminal in the server folder and run the following command
node server.js
Now move to the frontend folder in the terminal you have deployed the smart contract using the following command
cd Frontend
Now run the following command to run the application
npm start