{"id":22938278,"url":"https://github.com/dappnode/dappnode-dweb-template","last_synced_at":"2025-08-24T05:04:53.398Z","repository":{"id":55917644,"uuid":"153188184","full_name":"dappnode/dappnode-dweb-template","owner":"dappnode","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-07T12:33:48.000Z","size":3816,"stargazers_count":0,"open_issues_count":6,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-07T12:40:27.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dappnode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-15T22:11:49.000Z","updated_at":"2020-07-30T15:05:18.000Z","dependencies_parsed_at":"2022-08-15T09:20:54.332Z","dependency_job_id":null,"html_url":"https://github.com/dappnode/dappnode-dweb-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappnode%2Fdappnode-dweb-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappnode%2Fdappnode-dweb-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappnode%2Fdappnode-dweb-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappnode%2Fdappnode-dweb-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dappnode","download_url":"https://codeload.github.com/dappnode/dappnode-dweb-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700836,"owners_count":20819943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T12:16:44.225Z","updated_at":"2025-04-01T19:33:04.642Z","avatar_url":"https://github.com/dappnode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DAppNode + Dwebs tutorial\n\nThis tutorial will guide you in building and deploying a decentralized website. You will publish it in IPFS and then point an .eth domain to it using the Ethereum Name Service (ENS).\n\n## 1. Installing the tools\n\n### 1.1 Pre-requisites\n\nIf you don’t have it installed yet, you need to install Node.js in your laptop.\n\nLast stable version of Node.js (Or 10.16.2) works just fine.\n\n### 1.2 Clone and setup the template\n\nThe template is a simple create-react-app with preconfiguration and deploy scripts. Just run\n\n```\ngit clone https://github.com/dappnode/dappnode-dweb-template.git\n```\n\nthen,\n\n```\nyarn\nyarn start\n```\n\nor\n\n```\nnpm i\nnpm start\n```\n\nYou can now preview the website locally at http://localhost:3000\n\n## 2. Deploying the dweb\n\nFirst, let's personalize the website briefly and deploy it to IPFS.\n\nEdit `src/App.js` line 44 and write your name, brand or a just message.\n\n```javascript\n\u003cdiv className=\"hero-title\"\u003eWelcome to \"name\" // line 44\u003c/div\u003e\n```\n\nThen, run:\n\n```\nyarn run publish\n```\n\nor\n\n```\nnpm run publish\n```\n\nThe website files will be bundled and uploaded to IPFS. The result of the command will give you a link to directly access the website by accessing DAppNode's own IPFS gateway:\n\n```bash\n...\nUploading files...\nSuccesfully uploaded files!\n                                                       path\t                                          hash\t   size\n-----------------------------------------------------------\t----------------------------------------------\t-------\n                           build/android-chrome-192x192.png\tQmVDXMWzpcxJH7dVLy7EcJbiuwMbvW7TzpftQ9WhZJtNYo\t  25613\n                           build/android-chrome-512x512.png\tQmSPVmLSSBo9RdVTxUUGvDt3Qkb62Pu5ai3NPLrvdkKFxY\t  82789\n                                 build/apple-touch-icon.png\tQmV6VnxN2CdcHx7jE9ZWfxYQMhKn3w3isRHpvUdUUzFtnU\t  12448\n                                  build/asset-manifest.json\tQmdkm4QuWuLpEUxK5Sw6Zc6zxbNYqvvEpuzra6Wdfu29dC\t    739\n                                    build/favicon-16x16.png\tQmQmLYTCac5go87oVPdjqbwKHdrb5dDQxe5pD1SxqDdesF\t   1333\n                                    build/favicon-32x32.png\tQmTyju5LXAnxibNqu14Nv9KT3JSGstgPHJDJzYjyHVX6M1\t   2144\n                                          build/favicon.ico\tQmbcw7e2P9AGYBEzxSCnscE2Nw6JCpjKCftSS4SMxdRJqS\t  15097\n                                           build/index.html\tQmcfCrDMHYANCU5HtAfGoEPSMJY6W7ujE3vnwBfSJUBnAY\t   2078\n                                        build/manifest.json\tQmYLdnBrbeN8rpbwBC2VLwgSBht4Ft6hBSD6F3DKxqecGG\t    435\n                                   build/mstile-150x150.png\tQmWL2XRaSUsATTwhY1XV61eMSKtfugkLGb2CQ99xrXuvPj\t   5072\nbuild/precache-manifest.ddcafeb8e9d7e394cefc3d5a75f6db35.js\tQmYqWPHKJSEVZFpjd7jGJz245rbXkQpGfA2iL92qNYKQRT\t    516\n                                build/safari-pinned-tab.svg\tQmed3oKnRqBpo67pzgJhGEaHZVWBzC3AnP37WeBHXqxSZM\t   6147\n                                    build/service-worker.js\tQmQog54KdYuY6uUfX1yhpzqrvbUCEpLZgevygmV29sMNHw\t   1054\n                                     build/site.webmanifest\tQmRt7SXpWXEKCqerikcqtMxBBT6iiVzCZixCSyKkbk4Suc\t    472\n                   build/static/css/main.53f33b1d.chunk.css\tQmdUKpYyLLDyPj4D4Ym7gPbwnXHWiDFdGPwKQXEK7t1ou4\t    790\n               build/static/css/main.53f33b1d.chunk.css.map\tQmVDtt1eLcfPrRY21VfAqXKrxdd6HjYUtMnk1WVSTgiJi8\t   1779\n                        build/static/js/1.d7b27eab.chunk.js\tQmbCkiGR6htjUrabSm5m9DoRKdtH5m2WgbgonAZ5Zyi3Si\t1199095\n                     build/static/js/main.3f9a9d22.chunk.js\tQmQnViPdjVU7YqN97W5np4WFy2kurq3vdGSVwmgMv2VTri\t  13627\n                   build/static/js/runtime~main.4a686d48.js\tQmVfzdU72f7TuF196YVC629gf2GT18Z9dRhua9oahKFFAR\t   1514\n                                           build/static/css\tQmNN7bhsTL7Z5hJwM7PKhXhuYF9PSaYe7KmdkJovnNHGSp\t   2709\n                                            build/static/js\tQmZgTXSePohAbuRhtNVJhGstDEJYTa7o7ioFJhb1oEmzXi\t1214435\n                                               build/static\tQmawxD5GFXh4NM7mNHjShjccnN5mAHbf1wsKRu3mXdr4b4\t1217240\n                                                      build\tQmcR2GFrcQpLsMfBYMqrfebXizByZ2XbxjRN957LermuXW\t1374119\n\n\n\n\nTo point an .eth domain to this website, use this hash as value:\n\n   QmcR2GFrcQpLsMfBYMqrfebXizByZ2XbxjRN957LermuXW\n\nTo preview you website immediately go to:\n\n   http://my.ipfs.dnp.dappnode.eth:8080/ipfs/QmcR2GFrcQpLsMfBYMqrfebXizByZ2XbxjRN957LermuXW\n```\n\nUse the link provided to see your DWeb published on IPFS.\n\n## 3. Use DAppNode providers\n\nWe can also use Ethereum APIs provided by DAppNode.\n\nThe `src/` folder contains the file `providers.json` with the info of all ethereum networks available in this DAppNode.\n\nYou can uncomment a component that will list all these DAppNode's providers. To do so, uncomment the code block between lines 60 - 89 in `App.js`:\n\n```javascript\n{\n  Object.keys(providers).map((provider, i) =\u003e (\n    \u003cGrid key={i} item xs={3}\u003e\n      \u003cChainCard provider={providers[provider]} /\u003e\n    \u003c/Grid\u003e\n  ));\n}\n```\n\nNow run again:\n\n```\nyarn run publish\n```\n\nor\n\n```\nnpm run publish\n```\n\nGo to dweb.dappnode.eth to see a working template from ENS.\n\nJoin our community if you have any doubts:\n\nTelegram: https://t.me/dappnode\n\nRiot: https://riot.im/app/#/room/#DAppNode:matrix.org\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdappnode%2Fdappnode-dweb-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdappnode%2Fdappnode-dweb-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdappnode%2Fdappnode-dweb-template/lists"}