This application lets you add polls and manage polls for your organisation.
The only dependency required to build the application is the go framework https://golang.org/
- Install, (if not already installed), the go framework https://golang.org/dl/
- run
go buildin the source directory - (optional) rename the main binary to filecommander (or main.exe to filecommander if on windows)
example of settings.json
{
"binding": "0.0.0.0:8080"
}
if binding is specified as 0.0.0.0:8080 it will listen to all addresses
if binding is specified as 192.168.0.100:80 it will listen to 192.168.0.100 at port 80
- Download and install nodejs from https://nodejs.org (go for the LTS release if you are unsure which version to choose)
- Install webpack
npm install webpack -g - Install webpack development server
npm install webpack-dev-server -g - Install the additional dependencies run
npm installin the frontend directory
The front end is written using vue.js, vuex and webpack. There's no need to recompile the backend during development. The webpack development server will proxy the api calls to the backend once it is started.
- Compile and start the backend application, let it listen to port 8080
- Start webpack-dev-server run
npm run devin the frontend directory - browse to
localhost:8080with your favourite browser - make your changes to the code and it will update in the browser as you save
- press
ctrl + cto stop the dev server
- Run
npm run buildto run webpack en embed the content into go - Compile the go source with the updated front end code