Simple Decentralized App ArchitecturesteemCreated with Sketch.

in #ipfs7 years ago (edited)

Two Key Technologies:
IPFS: A distributed datastore modeled after BitTorrent and Git. Soon it will have an incentivisation layer in which you pay strangers to store your content. Basically, a P2P AWS.
Ethereum: A single shared computer living on the network, modeled after Bitcoin. It's essentially a computer everyone can trust to store data and to execute code.
Basic Dapp Architecture
dapp-basic-structure.png

To give context for the diagram, consider the application flow of a crowdfunding Dapp modeled after Kickstarter:

Client Side

Perform a DNS lookup to receive a hash of your dapp
Download the dapp from peers on IPFS
Load your HTML/JS/CSS
Lookup the most recent crowdfunding projects on Ethereum
a. Each project will contain a hash of the pitch video, content, and rewards
Use the hash to download a project's content from IPFS
Send ETH (Ethereum's currency) to fund the project
Ethereum Side

The croudfunding smart contract receives the ETH payment.
Once the deadline for the project crowdsale ends, the contract either pays the project creator or returns the funds to the funders.
In this example, our global state contains the list of current projects, references to their content, and simple logic for the payout. IPFS contains the Dapp code and project content.

With these simple building blocks, it is possible to create powerful applications.
(copied from publication "karl.tech/simple-dapp-architecture")

Sort:  

Congratulations @admiboss! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @admiboss! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard!


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @admiboss! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62817.54
ETH 2573.14
USDT 1.00
SBD 2.74