{"id":9836,"date":"2023-06-03T14:49:19","date_gmt":"2023-06-03T12:49:19","guid":{"rendered":"https:\/\/www.juust.org\/?p=9836"},"modified":"2023-06-03T15:12:49","modified_gmt":"2023-06-03T13:12:49","slug":"cool-shit-web3-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.juust.org\/index.php\/cool-shit-web3-in-wordpress\/2023\/06\/","title":{"rendered":"Cool shit : Web3 in WordPress"},"content":{"rendered":"\n<p>I was just laughing out loud with the door open. I think the neighbors think I lost it there for a sec or just snapped.<\/p>\n\n\n\n<p>I was interested in ways of using React in WordPress. I wanted to be able to develop Web3 apps with React on my blog. I started reading about it a month ago. And I just got something working today.<\/p>\n\n\n\n<p>There are standard ways to use React in WordPress. You can code Elementor and Guthenberg blocks with React, and make WordPress Widgets with React. But can you run a complete React app on WordPress ? <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ReactPress<\/h3>\n\n\n\n<figure class=\"wp-block-image alignleft size-full\"><a href=\"https:\/\/www.juust.org\/wp-content\/uploads\/2023\/06\/reactpress.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"600\" height=\"326\" src=\"https:\/\/www.juust.org\/wp-content\/uploads\/2023\/06\/reactpress.png\" alt=\"\" class=\"wp-image-9840\" srcset=\"https:\/\/www.juust.org\/wp-content\/uploads\/2023\/06\/reactpress.png 600w, https:\/\/www.juust.org\/wp-content\/uploads\/2023\/06\/reactpress-300x163.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<p>And yes, you can run a complete React app on your WordPress website. With <a href=\"https:\/\/wordpress.org\/plugins\/reactpress\/\" target=\"_blank\" rel=\"noopener\">ReactPress<\/a>, a WordPress plugin. It allows you to develop a React app on a local setup (a local wordpress site and a dev server) and upload the build directory to a live online production server. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>And it actually runs. The server of this website is a normal shared hosting server, not a Node VPS. That was my main issue. I didn&#8217;t want to have to use a VPS with Node for a simple JavaScript app.<\/p>\n\n\n\n<p>I uploaded the build directory, connected a page and it actually worked. What kind of Voodoo Magic is that ? Cool shit. Now I can code Web3 into my WordPress website. I laughed out loud at that moment. <\/p>\n\n\n\n<p>I like this tool. It has a nice simple functional interface. I had some trouble getting it to work, it pays to read the documentation and author comments, and user feedback. <\/p>\n\n\n\n<p>Once I got something running, I thought &#8216;fine&#8230; now, can I do Web3 with it in WordPress ?&#8217;. And yes, you can. As you can see on the new <a href=\"https:\/\/www.juust.org\/index.php\/wallet\/\" data-type=\"URL\" data-id=\"https:\/\/www.juust.org\/index.php\/wallet\/\">wallet<\/a> page. It is a crude NFT whitelist app on the Goerli test-network. It is a code sample from the &#8220;Sophomore&#8221; course at LearnWeb3.io. You can log in with Metamask, and if you have the Goerli network installed and have some GoerliETH to spare, you can apply for the whitelist. <\/p>\n\n\n\n<p>Famous last words : &#8220;it works on my machine&#8221;.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I created a Goerli testnet whitelist app, on a Wordpress install on standard shared hosting. Made with ReactPress.<\/p>\n","protected":false},"author":5796,"featured_media":9838,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[121,350,4,3,305,11,13],"tags":[345],"class_list":["post-9836","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blockchain","category-defi","category-juust","category-php","category-programming","category-seo-tool","category-wordpress","tag-defi"],"_links":{"self":[{"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/posts\/9836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/users\/5796"}],"replies":[{"embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/comments?post=9836"}],"version-history":[{"count":2,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/posts\/9836\/revisions"}],"predecessor-version":[{"id":9842,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/posts\/9836\/revisions\/9842"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/media\/9838"}],"wp:attachment":[{"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/media?parent=9836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/categories?post=9836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.juust.org\/index.php\/wp-json\/wp\/v2\/tags?post=9836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}