This is mega super alpha. It has lots of bugs and is probably very insecure. Use at your own risk.
Go2Lunch is a tool for organizing lunch groups. The client runs as a command line application with no dependencies. The server stores votes in memory.
Go2Lunch ships with a Rakefile to make building easy. If you have rake installed, simply type rake
to build both the client and server applications.
If you prefer not to use rake, build using the following commands
6g server.go common.go model.go
6l -o server server.6
6g lunch.go common.go update.go
6l -o lunch lunch.6
The server requires a config file to operate. The default file is called config.json
and should be in the same directory as the server. A different file can be specified with the -c
flag.
A ruby script called manage
is included to make server configuration easier. By default, manage will create a config file for you.
./manage add < keyfile
keyfile
should be the key provided by a client. It looks like "name":"LONGSTRINGOFCHARACTERS=="
.
./manage rm <name>
./manage
The client must be configured with a name and the server it uses on first run. Use the following command to setup
lunch -n <yourname> -s <serveraddress>:<port>
This will spit out a large string in the form "name":"LONGSTRINGOFCHARACTERS=="
. Add this to the server using the manage script.
lunch
lunch -a <name of place>
lunch <location #>
lunch -u
lunch -d <available seats>
lunch -rm <location #>
Note: You can only remove a place if no one has voted for it.