Development of decentralized web application powered by Ethereum blockchain
Blockchain is a system of recording information in a way that makes it difficult or impossible to change, hack, or cheat the system. It's is essentially a digital ledger of transactions that is duplicated and distributed across the entire network of computer systems on the blockchain.
- Introduction about Project Architecture and setting up the environment.
- Front end Application
- Smart Contract and Blockchain
- Connecting it all together middle ware
- Mention the tools you're using:
- Angular Js
- Smart Contract + Ethereum Blockchain/Ganache
- Web3JS + Metamask
- We're going to build the frontend of the application using Angular Js (Optional: VueJS, React Js).
- We build the actual smart contract.
- Frontend and the smart contract have know knowledge of each other to connect them we will use the middle ware library Web3JS which then connect with meta mask.
- Metamark is plucin which contact with the blockchain directly and connect with the front end.
Ganache is a local Blockchain which we will mostly work for testing purpose after the project is completed we add our project on main Ethereum Blockchain.
npm install -g @angular/cli@9.1.3
```bash
cd [folder location]
ng new blockchain-poll --directory ./
```
- Would you like to add Angular routing? No
- Which stylesheet format would you like to use? SCSS
- To check if the project is working
```bash
npm start
```
After successfull run the project will work on http://localhost:4200/
-
Delete all the Html Code From src/app/app.component.html "this will be you main HTML body add whatever Html Code you want to write in and it will get printed on the website"
"if you want to add any CSS or JS file in the website add the src/link file in" src/index.html
In this section we build the Frontend website in Angular and focus on different components, visual and logical structure.
Later we will connect it to blockchain.
If you already have your own website, or web app, skip this section. Later we will learn how to connect it to blockchain.