O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Transpiling the client-side application

Now that we've set up the $IGWEB_APP_ROOT environment variable, we can access the client directory, where the client-side web application is located:

$ cd $IGWEB_APP_ROOT/client

We issue the following go get command to install any additional dependencies that may be required for the proper functioning of our client-side application:

$ go get ./..

Finally, we issue the gopherjs build command to transpile the IGWEB client-side web application:

$ gopherjs build

After running the command, two files should be generated—client.js and client.js.map. The client.js source file is the JavaScript representation of IGWEB's client-side Go program. The client.js.map file is the source map file that will be used in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required