{"id":36741,"date":"2022-09-26T17:40:00","date_gmt":"2022-09-26T21:40:00","guid":{"rendered":"https:\/\/coinscreed.com\/staging\/?p=36741"},"modified":"2022-09-26T17:46:19","modified_gmt":"2022-09-26T21:46:19","slug":"how-to-create-a-free-web3-app","status":"publish","type":"post","link":"https:\/\/coinscreed.com\/staging\/how-to-create-a-free-web3-app\/","title":{"rendered":"How to create a free web3 app: Step by Step"},"content":{"rendered":"\n<p>Creating web3 apps is quite different from traditional web2 apps. From discovering the major differences between web3 and web2 to understanding the various functions. This article will give a full breakdown of how to create a web 3 app<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0-1024x536.jpg\" alt=\"How to create a free web3 app\" class=\"wp-image-36746\" srcset=\"https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0-1024x536.jpg 1024w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0-300x157.jpg 300w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0-768x402.jpg 768w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0-150x79.jpg 150w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0-750x393.jpg 750w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0-1140x597.jpg 1140w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>How to create a free web3 app<\/figcaption><\/figure>\n\n\n\n<p>The creation of a Web 3 app came as an answer to the cry of privacy issues on the internet. Privacy on the internet has always been one of the biggest problems yet. Personal information is constantly being mined and sold by websites that most time requires you to input your data before accessing their resources. <\/p>\n\n\n\n<p>A reason why you\u2019d see your apps recommending you a book you searched up on google but that\u2019s where web3 apps come in.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-is-web3\">What is web3?<\/h3>\n\n\n\n<p><a href=\"https:\/\/coinscreed.com\/staging\/web-3-0-beginners-guide-explained.html\">Web3 <\/a>is a new version of the World Wide Web that heavily leans on decentralization, tokens, and blockchains to reduce fraud, increase and protect users' privacy and prevent the transaction of personal information. <\/p>\n\n\n\n<p>While web3 might have started a bit earlier, the phrase \u201cweb3\u201d was made by the founder and co-founder of Polkadot and Ethereum Gavin Wood in 2014, he used it to refer to a decentralized environment based on blockchain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-is-a-web3-app\">What is a web3 app?<\/h3>\n\n\n\n<p>A <a href=\"https:\/\/coinscreed.com\/staging\/top-10-web3-applications-to-know-in-2022.html\">web3 app<\/a> (or Dapp) is a decentralized application that runs on a peer-to-peer network that controls the flow of data, rather than having information on a central system where it can be tampered with, the data is hosted on blockchains (smart contracts). <\/p>\n\n\n\n<p>The data is stored on blockchains that cannot be modified. <\/p>\n\n\n\n<p>This means you do not need to give your information before making transactions, enjoy increased privacy and ensure your information isn\u2019t being censored or controlled.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-web2-and-web3-what-s-the-difference\">Web2 and Web3. What\u2019s the difference?<\/h3>\n\n\n\n<p>Most of us are accustomed to web2; the traditional style but compared to the newer web three what are the differences?<\/p>\n\n\n\n<p>1. Web2 applications are centralized, most of the data is stored in one place where it can be restricted, censored, and monetized. On Web3 applications, the data is decentralized and near impossible to be limited as it passes through many peers.<\/p>\n\n\n\n<p>2. Sometimes users can\u2019t access particular services even while being on the network in Web2 but on Web3 users can access information freely as far as they are on the network.<\/p>\n\n\n\n<p>3, Payment in Web2 may require personal information and can be hindered at times but with Web3 no information is required as tokens are used for payment and can't be restricted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-makes-up-a-web3-app\">What makes up a Web3 app?<\/h3>\n\n\n\n<p>Dapps are similar to regular applications with frontend, backend, and the use of smart contracts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-frontend\">Frontend<\/h2>\n\n\n\n<p>The front end of the application has to do with the functionality, and how the user interacts with the site. It is built using <a href=\"https:\/\/www.google.com\/search?q=css+and+java&oq=css+and+java&aqs=chrome..69i57j0i433i512j0i20i263i512j0i131i433i512j0i433i512j0i512j69i60l2.2659j0j4&sourceid=chrome&ie=UTF-8\" target=\"_blank\" rel=\"noopener\">CSS and Javascript<span class=\"wpil-link-icon\" title=\"Link goes to external site.\" style=\"margin: 0 0 0 5px;\"><svg width=\"24\" height=\"24\" style=\"height:16px; width:16px; fill:#000000; stroke:#000000; display:inline-block;\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:svg=\"http:\/\/www.w3.org\/2000\/svg\"><g id=\"wpil-svg-outbound-7-icon-path\" fill=\"none\" clip-path=\"url(#clip0_31_188)\">\r\n                            <path d=\"M9.16724 14.8891L20.1672 3.88908\" stroke-linecap=\"round\"\/>\r\n                            <path d=\"M13.4497 3.53554L20.5208 3.53554L20.5208 10.6066\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\r\n                            <path d=\"M17.5 13.5L17.5 16.26C17.5 17.4179 17.5 17.9968 17.2675 18.4359C17.0799 18.7902 16.7902 19.0799 16.4359 19.2675C15.9968 19.5 15.4179 19.5 14.26 19.5L7.74 19.5C6.58213 19.5 6.0032 19.5 5.56414 19.2675C5.20983 19.0799 4.92007 18.7902 4.73247 18.4359C4.5 17.9968 4.5 17.4179 4.5 16.26L4.5 9.74C4.5 8.58213 4.5 8.0032 4.73247 7.56414C4.92007 7.20983 5.20982 6.92007 5.56414 6.73247C6.0032 6.5 6.58213 6.5 7.74 6.5L11 6.5\" stroke-linecap=\"round\"\/>\r\n                        <\/g>\r\n                        <defs>\r\n                            <clipPath id=\"clip0_31_188\">\r\n                                <rect fill=\"white\" height=\"24\" width=\"24\"\/>\r\n                            <\/clipPath>\r\n                        <\/defs><\/svg><\/span><\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-backend\">Backend<\/h2>\n\n\n\n<p>The back end of the Web3 application is rather expensive to maintain so transactions and vital data are stored on the <a href=\"https:\/\/coinscreed.com\/staging\/blockchain-and-digital-marketing-in-2022.html\">blockchain <\/a>and use data storage services for storing other information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-smart-contract\">Smart Contract<\/h2>\n\n\n\n<p>This is the highlight of Web3 apps and what makes them different from traditional apps. A <a href=\"https:\/\/coinscreed.com\/staging\/5-best-smart-contract-platforms-ranked.html\">smart contract<\/a> is a web tech that contains programs concerning an event or transaction. It is designed to carry out specific functions where certain conditions are met.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-you-should-know-before-you-build-a-web3-app\">What you should know before you build a Web3 app<\/h2>\n\n\n\n<p>It\u2019s obvious if you\u2019ve read this far it means you have knowledge in web technologies and are probably familiar with one or two coding languages as a beginner may probably find it a hard task to attempt creating a Dapp without first creating traditional web applications. You&nbsp; would need an understanding of:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>React<\/li><li>Solidity language(for smart contracts)<\/li><li>Blockchain programming<\/li><li>Crypto wallets<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-tools-you-ll-need-to-build-your-own-dapp\">Tools you\u2019ll need to build your own <a href=\"https:\/\/coinscreed.com\/staging\/finance-redefined-reports-3-7-growth-in-dapp-activity-in-august.html\">Dapp<\/a><\/h2>\n\n\n\n<p>You can\u2019t go to war without weapons, it\u2019s a no-brainer you\u2019ll need the right tools to start your journey. Some tools you can use to build a Dapp are:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Visual Studio Code\/ Typescript<\/li><li>Metamask<\/li><li>Hardhat<\/li><li>Vercel\/ Alchemy<\/li><li>React<\/li><\/ol>\n\n\n\n<p>Once you\u2019ve got those tools, it\u2019s time to begin creating a Dapp.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-setting-up-our-smart-contract\">Setting up our Smart Contract<\/h2>\n\n\n\n<p>You\u2019ll need a local <a href=\"https:\/\/coinscreed.com\/staging\/mining-ceo-ethereum-merge-will-overpower-rival-coins.html\">Ethereum <\/a>network to test whatever you\u2019re working on to see whether it\u2019s functional. That\u2019s where Hardhat comes in, it allows you to test your smart contract with fake ETH and mock accounts,<\/p>\n\n\n\n<p>Start by setting up a code for the basis of the project, in the terminal and directory of your choice. It allows you to create tasks, compile your code, and run tests. Ensure to install Hardhat in a directory as well.<\/p>\n\n\n\n<p>Create a PickupLine in the Contract directory. This will be the Smart contract, To run it, you\u2019ll need to write a run code after creating a run.js file and then run the command. You should see a message that confirms your contract being deployed.<\/p>\n\n\n\n<p>You need to make sure that the Pickup line being sent to you can be stored in the blockchain. So you\u2019ll have to program a code that stores the contract permanently.<\/p>\n\n\n\n<p>To put the icing on the cake you need to deploy the smart contract, start by creating a deploy folder in the scripts directory, You\u2019ll need to use Vercel or Alchemy, this will help you mimic the transactions of an Ethereum application and give you fake coins for testing.<\/p>\n\n\n\n<p>Ensure to change your network and set the function to export the private key when it\u2019s run. Then go to the deploy folder and run the command.<\/p>\n\n\n\n<p>You should get a message showing the account successfully deployed and the address on the blockchain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-building-the-frontend\">Building the Frontend.<\/h3>\n\n\n\n<p>The front end of the application should be built with applications like React, the UI should consist of easy-to-use functions and buttons that will ensure users don\u2019t get overwhelmed by complex functions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-link-your-web3-app-to-your-wallet\">Link your Web3 App to your wallet<\/h3>\n\n\n\n<p>So we\u2019ve gotten the front-end and smart contract down, now it\u2019s time to link the application with the wallet. Metamask is a wallet extension, that allows you to transact with cryptocurrency and NFTs which you\u2019ll then link to the application by writing a code in the App. tsk folder.<\/p>\n\n\n\n<p>Now with the front-end functional, the contract deployed and the wallet linked, try bringing up the contract from the smart contract with the information from the deployed account. First, you\u2019ll need to create a pickup function that will source and retrieve the information when requested by writing up the code in the App. tsk file. <\/p>\n\n\n\n<p>Then write a code to create the function\u2019s button that will send a line on a click. After doing this and running a message from Metamask should appear requesting a payment that you\u2019ll make using your fake cryptocurrency.&nbsp;<\/p>\n\n\n\n<p>You can also restrict the number of times a user can send a pickup line or message this is useful in the event of gifts or events so that one user may not try to claim a reward more than once. You can add a new line in the Pickup lines setting an IF statement that blocks repetitive submission of one pickup line.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Now you\u2019ve got a functional Dapp that, can process and store smart contracts, buy and sell all the while retaining your anonymity over the internet. You can choose to style the website how you see fit, with fancy fonts, art, and anything that will make the website aesthetically appealing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating web3 apps is quite different from traditional web2 apps. From discovering the major differences between web3 and web2 to understanding the various functions. This article will give a full breakdown of how to create a web 3 app The creation of a Web 3 app came as an answer to the cry of privacy [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":36746,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11411,11404],"tags":[7082,202,132],"class_list":["post-36741","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web3","category-learn","tag-web-3-0-applications","tag-blockchain","tag-crypto"],"jetpack_featured_media_url":"https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2022\/09\/web-3.0.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/posts\/36741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/comments?post=36741"}],"version-history":[{"count":0,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/posts\/36741\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/media\/36746"}],"wp:attachment":[{"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/media?parent=36741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/categories?post=36741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/tags?post=36741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}