{"id":2039,"date":"2020-12-28T05:59:25","date_gmt":"2020-12-28T05:59:25","guid":{"rendered":"http:\/\/org.saito.tech\/?page_id=2039"},"modified":"2020-12-30T19:54:34","modified_gmt":"2020-12-30T19:54:34","slug":"tutorial-1-deploy-a-new-application","status":"publish","type":"page","link":"https:\/\/org.saito.tech\/tutorial-1-deploy-a-new-application\/","title":{"rendered":"Tutorial 1 &#8211; Deploy and Install a Saito Application"},"content":{"rendered":"\n<p>Start by <a href=\"http:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/tutorial01.zip\">downloading this ZIP file<\/a>, which contains a very simple application. You can find an annotated copy of the source code online, and may want to take a quick look. For now let&#8217;s move on to uploading and installing it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"http:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25.png\" alt=\"\" class=\"wp-image-2053\" width=\"558\" height=\"379\" srcset=\"https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25.png 1964w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25-300x204.png 300w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25-768x522.png 768w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25-1024x697.png 1024w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25-1536x1045.png 1536w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25-882x600.png 882w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25-588x400.png 588w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.54.25-294x200.png 294w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/figure>\n\n\n\n<p>Visit your <a href=\"https:\/\/saito.io\/wallet\">Saito Wallet<\/a> and click on &#8220;AppStore&#8221; in the application sidebar. We want to upload our new application, so drag that zipfile onto the drag-and-drop upload panel. This transfers the file into your browser and wraps it in a Saito transaction. A submit button will appear when this process is done. Click it.<\/p>\n\n\n\n<p>Congratulations! You&#8217;ve just published your application. Technically, you&#8217;ve just sent that transaction (containing your app) out into the network along with metadata requesting that the AppStores on the network index and host your application. You&#8217;ll be shown a short message that tells you this. Skip it and go back to your Inbox.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"http:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17.png\" alt=\"\" class=\"wp-image-2055\" width=\"562\" height=\"359\" srcset=\"https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17.png 1964w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17-300x192.png 300w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17-768x490.png 768w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17-1024x654.png 1024w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17-1536x981.png 1536w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17-940x600.png 940w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17-626x400.png 626w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.17-313x200.png 313w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/figure>\n\n\n\n<p>Surprise! If your browser sent the transaction properly, you&#8217;ll have received an email confirming your submission. Open this email and you&#8217;ll find your unique APP-ID along with a link you can click on to install the application. Anyone can use that link or your APP-ID to find your application. If you ever need to search manually, go back to the AppStore, click to launch the Saito Appstore and search for your APP-ID manually (note: if your application is not found right away, wait a minute until it is finished indexing). You should see this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1962\" height=\"1328\" src=\"http:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56.png\" alt=\"\" class=\"wp-image-2056\" srcset=\"https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56.png 1962w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56-300x203.png 300w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56-768x520.png 768w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56-1024x693.png 1024w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56-1536x1040.png 1536w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56-886x600.png 886w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56-591x400.png 591w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.55.56-295x200.png 295w\" sizes=\"(max-width: 1962px) 100vw, 1962px\" \/><\/figure>\n\n\n\n<p>Click to view your app details and then click INSTALL. Upgrading your browser takes about 45 seconds. Watch the countdown and wait for your installation to complete. You&#8217;ll be asked to confirm you want to upgrade your client before the process is over. Click &#8220;CONFIRM&#8221; and your browser will reload and take you back to your <a href=\"https:\/\/saito.io\/wallet\">Saito Wallet<\/a>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1974\" height=\"1336\" src=\"http:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46.png\" alt=\"\" class=\"wp-image-2057\" srcset=\"https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46.png 1974w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46-300x203.png 300w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46-768x520.png 768w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46-1024x693.png 1024w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46-1536x1040.png 1536w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46-887x600.png 887w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46-591x400.png 591w, https:\/\/org.saito.tech\/wp-content\/uploads\/2020\/12\/Screen-Shot-2563-12-30-at-22.57.46-296x200.png 296w\" sizes=\"(max-width: 1974px) 100vw, 1974px\" \/><\/figure>\n\n\n\n<p>Look at the sidebar and you&#8217;ll see the application you just installed. Click on it and click on the button. Looks like this application creates a simple HTML interface and sends a transaction (with data) onto the network s, and then take a look at the <a href=\"https:\/\/github.com\/SaitoTech\/saito-lite\/blob\/master\/mods\/tutorial01\/tutorial01.js\">annotated source code<\/a> to see how easy it was to build.<\/p>\n\n\n\n<p>In our next tutorial we&#8217;ll create an application that can receive transactions in addition to sending them. Before we get to that, there&#8217;s something important you may have realized: the Saito AppStore is an application like any other application. Although our tutorial series starts with small applications, there&#8217;s no limit to the complexity of the applications that you want to build.<\/p>\n\n\n\n<p>TODO: hack-up the javascript file to change the name of the application and the functionality of the button. Instead of broadcasting a transaction, how about displaying a TEXTAREA and signing the message the user provides with the privatekey in our wallet?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Start by downloading this ZIP file, which contains a very simple application. You can find an annotated copy of the source code online, and may want to take a quick look. For now let&#8217;s move on to uploading and installing&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false},"_links":{"self":[{"href":"https:\/\/org.saito.tech\/wp-json\/wp\/v2\/pages\/2039"}],"collection":[{"href":"https:\/\/org.saito.tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/org.saito.tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/org.saito.tech\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/org.saito.tech\/wp-json\/wp\/v2\/comments?post=2039"}],"version-history":[{"count":4,"href":"https:\/\/org.saito.tech\/wp-json\/wp\/v2\/pages\/2039\/revisions"}],"predecessor-version":[{"id":2058,"href":"https:\/\/org.saito.tech\/wp-json\/wp\/v2\/pages\/2039\/revisions\/2058"}],"wp:attachment":[{"href":"https:\/\/org.saito.tech\/wp-json\/wp\/v2\/media?parent=2039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}