Build and Run

Building our Shiny hello world app is simple as Shiny has no native dependencies—we can simply build or run the hello.go file directly. Additionally, as many platform drivers are written without CGo, we can easily cross-compile for those operating systems. The following screenshot illustrates building for Linux and then Windows with no additional setup:

Building our hello app and running it with no CGo is easy

Note that building for macOS would require some additional setup, as its driver uses CGo (as described in the preceding Cross-compiling section of Getting started).

However you build or run the application, you should see a little window, something like the following:

Hello world with Shiny

We could refine the visuals of our app, but instead, we will move on to a larger application to demonstrate the capabilities of Shiny.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.139.224