with the vuejs cli installed (https://github.com/vuejs/vue-cli)
vue init webpack my-project
answer questions for project setup, optionally installing unit tests but yes to vue-router
cd into the newly created directory and install dependencies
cd my-project
npm install
from within the project directory run the app in dev mode under node
npm run dev
if this starts without error, the message should appear:
Your application is running here: http://localhost:8080
Changing the port that the server is to run on in config/index.js where this is set - see the line : port: 8080,
can solve problems where there is already something running on port 8080
the file
src/router/index.js
needs to have the option mode: 'history',
added to the Router object which will disable the '#' symbol being used for the root of the client side application
An extra component is added and imported -
src/router/index.js
src/components/TestRoute.vue
npm run build
the golang server needs to be given the path the build directory created by the above build command
$GOWORKDIR/src/server/main.go