Categorygithub.com/jo-m/ssd-timer
modulepackage
0.0.0-20230428224728-8e4c4588ce40
Repository: https://github.com/jo-m/ssd-timer.git
Documentation: pkg.go.dev

# README

Startup Speeddating Ticker

This is the Ticker used for the EC Startup Speeddating. It is written in Go and uses Websockets for real-Time communication.

After starting the server, everyone accessing the root URL will see the same synchronized ticker. Type /admin in the address bar to get to the admin interface after entering the password.

This way you can let the timer run from on a Laptop connected to a projector, and remote-control the timer with your smartphone or from another computer.

Screenshot of timer, and admin console

Build and Run

Build:

go build
# and run
./ssd-timer -p your_secret

Run using foreman (env vars can be edited in .env):

go build
foreman start

Just run using go run:

make run
# or
go run ./ -p your_secret

Build and install in gopath:

git clone [email protected]:jo-m/ssd-timer.git $GOPATH/src/github.com/jo-m/ssd-timer
cd $GOPATH/src/github.com/jo-m/ssd-timer
go get

Deploy to heroku

heroku apps:create ssd-timer; \
heroku labs:enable --app ssd-timer websockets; \
heroku config:add --app ssd-timer BUILDPACK_URL=https://github.com/kr/heroku-buildpack-go.git; \
heroku config:add --app ssd-timer ADMIN_PASSWORD=<password>; \
git push heroku master

Check logs

heroku logs --app ssd-timer --tail

# Structs

No description provided by the author
TimerConfig holds the static config for a timer.
TimerState holds the current global state for the timer.