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 build
in 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 install
in 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 dev
in the frontend directory - browse to
localhost:8080
with your favourite browser - make your changes to the code and it will update in the browser as you save
- press
ctrl + c
to stop the dev server
- Run
npm run build
to run webpack en embed the content into go - Compile the go source with the updated front end code