Giter VIP home page Giter VIP logo

myproject's Introduction

Project on IPFS.

This project develops a Decentralised application "Meta-drive" that allows users to store and view their files on the IPFS network as well as allows them to share it with other users using the metamask account. We have used PINATA-> which is an NFT media management service that allows users to pin their content on IPFS thereby giving a fast and easy way to both technical and non technical creators to share and manage their files.

The necessary resources needed for this project are: React.js,ethers,hardhat configuration, Solidity and IPFS.

To deploy the project on your local machine try running some of the following tasks in your IDE:

Installing the dependencies:

Installing hardhat:

  1. Write this cmd in your vs code ide's terminal
npm install hardhat --save-dev [email protected]

2)Then the terminal prompts you to install some extra dependencies along with their repective commands, so they must be installed too.

3)npx hardhat

4)Create a Javascript project( Press Enter)

5)press Y and then Enter.

Installing React

npm install create-react-app client

To run the app.js file of react on your local host type the following cmds.

cd client
npm start

Starting the local ethereum network using Hardhat.

The command below starts a local Ethereum network using the Hardhat development environment. This network is commonly used for testing and developing decentralized applications (dApps) without having to interact with the real Ethereum network, which can be expensive and time-consuming. The cmd below lists some accounts with their private keys in your terminal. We need to import those accounts in the browser's metamask wallet to use the test ether for performing the operations after deploying our smart contract.

npx hardhat node

After ruuning the above cmd we must deploy our smart contract by the deployment migration script "deploy.js" using the following cmd.

npx hardhat run --network localhost scripts/deploy.js

The above cmd will generate an output like :

Library deployed to:<hashcode>

The above hashcode must be pasted in App.js in contractAddress variable.

Installing axios API

npm install axios

Generating an API KEY after making an account on PINATA.

The generated api key and secret api key must be pasted in FileUpload.js in the variable pinata_api_key and pinata_secret_api_key.

myproject's People

Contributors

mosabhai77 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.