Skip to content

Decentralized News platform built on ethereum blockchain.

Notifications You must be signed in to change notification settings

manan-g/hash-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hashNews

We developed this project for our college capstone project program.

  1. We aimed to create a decentralised platform which enables journalist to post articles and related media on the blockchain and ipfs respectively.
  2. And then allow common users to access the immmutable ledger via html injection on social media posts and browser by building a browser extension.

Tech Stack used

  • Solidity: To create smart contract for the application logic.
  • React: To create the front-end application for the user to interact with the blockchain
  • Truffle and Ganache: for contract local development and testing
  • IPFS: To store the media files
  • Django: As an API which processes client side data and fetches results from the blockchain.
  • Chrome Extension: Built to create a one click solution to bust any suspected fake news.
  • Third Party APIs used: ALGOLIA, OCR_SPACE, TwitterAPI, etc.

Screen Shots:

Chrome Extension:

2 ways to access for common users:

  1. Click on the button that has been injected via our extension. Which processes the text and image of the tweet.
  2. Select the text(information) you want to confirm, right click and click on search via HashNews button on the menu.

Search Results


Ethereum based News-forum





To run the project locally

  • install truffle and ganache
  • clone the project and run npm install
  • install metamask browser extension
  • run ganache and connect the metamask to local ganache blockchain
  • now in the vs code terminal run truffle migrate --reset
  • set up the env file acc to the template given file named env_template
  • and after deploying the contract on local blockchain, run npm start to start the react app locally
  • in the metamask choose the local network set up earlier while connecting to the ganache and import one of the account provided in the ganache window
  • Go to the python API folder and start a Django project, create your personal Algolia, and twitter developer tokens, run the app.
  • for the chrome extension, go to the extensions tab in chrome and load the local extension from the chrome extension folder.

As the contract logic gives article posting rights acc to the vote count of the user so initially contract owner acc has rights to post articles etc but if upvoting and downvoting happens then the rights will be restored acc to the voting criteria.

About

Decentralized News platform built on ethereum blockchain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published