Loading the sample dataset

The sample dataset provided is used to populate data for the Products listing and About pages. You can visit the Products listing page in your browser by accessing http://localhost:8080/products, and you should see the screen shown in Figure 2.9:

Figure 2.9: The Empty Products section with a message to load the sample dataset

Go ahead and click on the link displayed on the web page to load the sample dataset. When you click on the link, you should see the screen shown in Figure 2.10:

Figure 2.10: The confirmation that the sample dataset has been loaded

Now if you go back to the Products listing page, you should see the products displayed on the page, as shown in Figure 2.11:

Figure 2.11: The Products Section, Populated With Products

We now have the IGWEB demo up and running!

Each time we want to make a change to our server-side Go application, we need to issue a go build command and restart the web server instance. Similarly, each time we make a change to our client-side Go application, we have to issue a gopherjs build command. Constantly issuing these commands, while we're deep in development, can be tedious and inefficient. The kick command provides us with a means to be more productive.

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

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