Skip to content

EcoChain is a DApp which allows users to report any illogical activities detrimental to the environment and get reward from police.

Notifications You must be signed in to change notification settings

raunakpandey1/Hackformers_Brocode_07

Repository files navigation

EcoChain

A decentralized application (DApp) utilizing Ethereum blockchain and MERN tech stack, which allows users to report any illogical activities detrimental to the environment, such as deforestation, hazardous waste spreading, and release of harmful gases. Users can tag the nearest police station to take action against such activities.Upon valid complaints, the police can reward the user with cryptocurrency.

Technology Stack & Tools

  • React.js (Frontend Framework)
  • Hardhat (Development Framework)
  • Ethers.js (Blockchain Interaction)
  • Solidity (Writing Smart Contracts & Tests)
  • Javascript (React & Testing)
  • Pinata (Media storage and distribution on IPFS)

Requirements For Initial Setup

Setting Up

1. Clone/Download the Repository

2. Install Dependencies:

$ npm install

3. Start Hardhat node

$ npx hardhat node

4. Run deployment script

In a separate terminal execute: $ npx hardhat run ./scripts/deploy.js --network localhost

5. Create Pinata Account

add your own API key under Authorization -> JWT

6. Start frontend

$ npm start

Screen shots 📸

Home
alt text

User

Sign up
alt text
Sign In
alt text
Dashboard
alt text
Create complaint
alt text

Police

Sign up
alt text
Sign In
alt text
Dashboard
alt text

About

EcoChain is a DApp which allows users to report any illogical activities detrimental to the environment and get reward from police.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •