DEV Community

MOHIT BHAT
MOHIT BHAT

Posted on • Updated on

Appwrite Submission Post MerkleWrite- A decentralised blogging website built using ethereum, defi and appwrite

Overview of My Submission

About

This is Decentralized content sharing platform made on top of ipfs, Defi and Ethereum. Nowdays content creation is centralised and are subject to changes or partiality by the site owners. To support the content creators and provide them with equal rights and profits, merklewrite is made!

In merkleWrite you can write a blog with images and markdown content. The users will need to pay 1 DAI as subscription fee for 30 days to see the blog's. The DAI taken from user's are then sent to Compound for generating Interest(In the Form Of CTokens). The Dai Taken and Interest generated are then equally divided between content creators who has Likes more than specified limit(Currently set at 10). You can transfer Subscription to other ethereum address, get paid once in a month and update your profile's to let world know you!
The Best part Is All is Decentralized with a no code support from appwrite

Blockchain Technologies used

  • Ethereum
  • Matic Network
  • Portis
  • DEFI
  • Dai Stable coin
  • Compound
  • Ipfs
  • ERC20

TechStack Used

  • Blockchain
  • Nodejs
  • HTML/CSS
  • Boostrap
  • Javascript
  • Appwrite

Features

User can write blog(MarkDown Supported)

  • To write a blog the user needs to go to write section
  • He need to login using Portis wallet or create one
  • Need's to put title, featured Image and Content(In Markdown) and submit it
  • Pay the gas fee, hola! Blog uploaded!! ### Profile/Account Section It includes:
  • Subscribe To see Blog's
  • Transfer Your Subscription
  • Update name, Profile Image and Cover Image
  • See Subscription Details, No of total likes on the post's, Get paid for content and see all blog that you uploaded

## Other features

  • You can like blog's(thanks to appwrite database api)
  • You can see the Author Profile and all his/her Blogs

To Run The code

  • Clone the Repo
  • Go to project Directory and open Cmd
  • Run npm install
  • Run npm start
  • Head to http://127.0.0.1:5000/

How this is built

Blokchain: The blockchian used here is ethereum and polygon(on testnets). The post metadata data is stored on smart contract which is built using solidity. The post content and images and other stuff are first uploaded to ipfs(interplanetary file system) and the hash returned is then stored onto the smart contract. This saves gas cost and provides more security and feasibility.

The payments are take through portis wallet and sent to compound protocol(which gives us back ctokens) which basically generated interest on it. Ones months end payments are calculated on the basis of how many creators are there, and there likes, views and then the amount is taken back from compound and given to creators. The interest generated is sent to admin(us).

Frontend: Its built using html, css, javascript, bootstrap. Web3js is used to make communication with web3 wallets, ethereum/polygon blockchain.

Backend: There is a small backend working for auth and storing likes on post which helps in distribution of creators funds. appwrite database is connected to nodejs backend and routes are created to handle application data. It act as a intermediary node between connecting appwrite, blockchain, ipfs and frontend.

Appwrite: Appwrite is really awesome. I was able to setup and connect all these things in very short span of time because of appwrite. appwrite is deployed using digital ocean image.

Image description

Then project is created and web app is added to it and database is created which handles like data. Some apprite functions are also used for data interaction btw blockchain and backend.
Image description
Image description
Image description
Image description

Submission Category:

Web3 Wunderkinds

Links

Website 👉 https://merklewrite.herokuapp.com/

Github 👉 https://github.com/mbcse/app-write-dev

Appwrite Link 👉 http://68.183.246.221/

YouTube 👉 https://youtu.be/qbnQlZge98Q

Hola! Decentralized Blogging started

Deployed On Matic Mumbai Testnet

Wallet Support by Portis

Backend Support by Appwrite

LIVE WEBSITE LINK: https://merklewrite.herokuapp.com/

IPFS Accessed through Infura

Top comments (0)