Go to file
2018-07-26 14:21:58 -05:00
assets Better mobile formatting 2018-06-18 08:49:15 -05:00
Godeps Updated, hopefully good for the jam! 2017-07-28 14:36:14 -05:00
templates Merge branch 'master' of github.com:br0xen/ictgj-voting 2018-06-18 09:12:28 -05:00
vendor Updated, hopefully good for the jam! 2017-07-28 14:36:14 -05:00
.gitignore Compiling... But still work to do. 2017-10-19 14:53:07 -05:00
admin_archive.go Compiling... But still work to do. 2017-10-19 14:53:07 -05:00
admin_clients.go Getting things going 2017-10-21 17:47:01 -05:00
admin_endpoints.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
admin_games.go Running out of memory now 2018-01-23 14:55:52 -06:00
admin_teams.go Getting things going 2017-10-21 17:47:01 -05:00
admin_users.go Compiling... But still work to do. 2017-10-19 14:53:07 -05:00
admin_votes.go Better mobile formatting 2018-06-18 08:49:15 -05:00
assets.go Merge branch 'master' of github.com:br0xen/ictgj-voting 2018-06-18 09:12:28 -05:00
main.go Better mobile formatting 2018-06-18 08:49:15 -05:00
model_clients.go Getting things going 2017-10-21 17:47:01 -05:00
model_gamejam.go Getting things going 2017-10-21 17:47:01 -05:00
model_games.go Running out of memory now 2018-01-23 14:55:52 -06:00
model_sitedata.go Better mobile formatting 2018-06-18 08:49:15 -05:00
model_teams.go Getting things going 2017-10-21 17:47:01 -05:00
model_users.go Compiling... But still work to do. 2017-10-19 14:53:07 -05:00
model_votes.go Running out of memory now 2018-01-23 14:55:52 -06:00
model.go Running out of memory now 2018-01-23 14:55:52 -06:00
page_session.go Getting things going 2017-10-21 17:47:01 -05:00
public_endpoints.go Running out of memory now 2018-01-23 14:55:52 -06:00
README_ADMIN_USAGE.md Additional READMES 2018-07-26 14:16:45 -05:00
README_GOTIME.md Update README_GOTIME.md 2018-07-26 14:21:58 -05:00
README.md Update the readme 2018-01-23 15:16:36 -06:00

ictgj-voting

The ICT GameJam Voting Application

Downloading and Running

  1. Download a binary from the list below that is appropriate for your system
  2. Run the binary, if a database is not found in the current directory, the application will walk you through an initial set up:
    1. Create an admin user
    2. Give the site a title
    3. Name the current game jam
    4. A database will be created for you in the current directory

Command Line Arguments

Configuration arguments

Passing a configuration argument will save the value to the database for future use

  -title=<title>          Set the title for the site  
  -port=<port>            The port to run the site on  
  -session-name=<name>    A name to use for the session  
  -server-dir=<director>  Directory to use for assets (templates/js/css)  
  -reset-defaults         Reset all of the configurable site settings to their defaults  
                          This only affects the settings that can be set from the command line  

Runtime Arguments

These arguments only affect the current run of the application

  -help                   Display the application help, breakdown of arguments  
  -dev                    Run in development mode, load assets (templates/js/css) from file system  
                          rather than the binary  

Prebuilt Binaries

Linux 64 bit
Linux 32 bit
Linux Arm
Mac OS
Windows 64 bit
Windows 32 bit

Building

go get github.com/devict/ictgj-voting

Developing/Contributing

Setup

  1. Fork this repo, rather than cloning directly.
  2. Then go get your github fork, similarly to the command in the Building section above.
  3. Make your changes
  4. If you changed any template files, run go generate to regenerate the assets.go file
  5. Make and commit your changes, then submit a Pull Request (PR) through GitHub from your fork to github.com/devict/ictgj-voting

Notes

  • Pass in the -dev flag to enable development mode (load assets from the file system instead of embedded).
  • After making changes to assets (templates, javascript, css) be sure to run go generate before go build - this regenerates the assets.go file
  • Please use the go tooling to match the standard go coding style.
  • For parts that aren't bound by standard go style, either try to match the already existing style, or give a reason why you think it should change.

Vendorings