This is a Golang web application that allows a team to anonymously vote and get a sense of the "team mood".
The mood is represented by a lissajous gif that will be green and calm for teams in a good mood and red and chaotic for teams in a bad mood. The mood will normalize over time without any input.
There will be a Vote
link on the team view page to go to the vote form.
To vote a user will select one of 5 emojis corresponding to happiness.
This will raise or lower the score and affect the gif when viewed.
- Clone or fork repository
- Run
docker build -t mood .
- Run
docker run -p 8080:8080 mood
- Visit http://localhost:8080/
- Set
DATABASE_HOST
,DATABASE_USERNAME
, andDATABASE_PASSWORD
as environment variables. - While logged into MySQL run
source scripts/database/mood-mysql.sql
to create the database and tables. - Run mood with the
--database=mysql
flag.
- Unique IP cannot vote twice within an hour
- Ability to create a team that requires a password to vote
- Testing
- Unique team names
- Implement search by team name for view