DApp architecture

Generally, a DApp is a two-tier application, comprised of two main components: 

  • A frontend layer on the user side
  • A backend (smart contract) hosted in the blockchain network

In the frontend, if you are familiar with Bootstrap or any other framework, you can continue using it. You won't need to manage user accounts, create accounts, or log in to access your DApps, as the network is anonymous, and we only deal with anonymous accounts (addresses), without identification. On Ethereum, the backend operations are ensured by the smart contract, which is validated by the peer-to-peer network. The following diagram shows the layers of a typical DApp and the interactions between the frontend and backend: