Go to file
Brian Buller d1496007fb Switching Dev Systems 2017-10-18 17:18:12 -05:00
Godeps Updated, hopefully good for the jam! 2017-07-28 14:36:14 -05:00
assets Updated, hopefully good for the jam! 2017-07-28 14:36:14 -05:00
templates Updated, hopefully good for the jam! 2017-07-28 14:36:14 -05:00
vendor Updated, hopefully good for the jam! 2017-07-28 14:36:14 -05:00
.gitignore Started working on archive gamejam dbs 2017-10-02 08:44:55 -05:00
README.md Readme Work 2017-07-24 09:02:10 -05:00
admin_archive.go Commit to merge latest code 2017-10-03 09:01:32 -05:00
admin_clients.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
admin_endpoints.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
admin_games.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
admin_teams.go Cleaning up the models, making things a little nicer 2017-10-02 18:06:35 -05:00
admin_users.go Cleaning up the models, making things a little nicer 2017-10-02 18:06:35 -05:00
admin_votes.go Cleaning up the models, making things a little nicer 2017-10-02 18:06:35 -05:00
assets.go Regenerated Assets... 2017-10-02 18:12:24 -05:00
main.go Pushing up, done for the day 2017-10-11 18:03:27 -05:00
model.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
model_clients.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
model_gamejam.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
model_games.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
model_sitedata.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
model_teams.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
model_users.go Pushing up, done for the day 2017-10-11 18:03:27 -05:00
model_votes.go Switching Dev Systems 2017-10-18 17:18:12 -05:00
page_session.go Cleaning up the models, making things a little nicer 2017-10-02 18:06:35 -05:00
public_endpoints.go Pushing up, done for the day 2017-10-11 18:03:27 -05:00

README.md

ictgj-voting

The ICT GameJam Voting Application

Downloading and Running

Download a binary from the list below that is appropriate for your system
Run the binary, if a database is not found in the current directory, the application will walk you through
and initial set up (create an admin user, give the site a title, name the current game jam) and a database
will be created 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 Notes

Do not make changes to assets.go, this file is generated when you run go generate
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 that style,
either try to match the already existing style, or give a reason why you think it should change.

Vendorings