Setting up the template set on the server side

Let's examine the variable declarations at the beginning of the igweb.go source file found in the igweb folder:

var WebAppRoot stringvar WebAppMode stringvar WebServerPort stringvar DBConnectionString stringvar StaticAssetsPath string

The variables declared here are critical for the proper operation of the web server instance. The WebAppRoot variable is responsible for specifying where the igweb project folder resides. The WebServerPort variable is responsible for specifying on what port the web server instance should run on. The DBConnectionString variable is used to specify the connection string to the database. The StaticAssetsPath variable is used to specify the directory that contains all ...

Get Isomorphic Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.