Feeling grateful? Want to recognise a colleague?
People's Choice is a web application that lets people vote for their colleagues.
The candidates are pulled from G Suite via the Admin SDK.
If your workplace uses G Suite (likely if you read your work emails via the Gmail interface) then you are probably good to go.
Create a Google Cloud project and do the following:
Hot reload for local development:
$ yarn dev
To analyse build size:
$ ANALYZE=true yarn build
export API_CLIENT_ID="11111-xxxxx.apps.googleusercontent.com"
export API_CLIENT_SECRET="some secret"
export JWT_SECRET="some random secret"
export DIRECTORY_DOMAIN="mycorp.com.au"
export EXCLUDED_EMAILS="hello@mycorp.com.au,support@mycorp.com.au"
export ADMIN_EMAILS="elpresedente@mycorp.com.au,someother@mycorp.com.au"
export MAX_VOTES="3"
export OBFUSTICATION_PEPPER="QmAyxZJv6EM85EBW79aXPkt^N"
export DYNAMO_USER_TABLE_NAME="PeoplesChoiceUserTable"
export AWS_ACCESS_KEY_ID_=SOME_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY_=SOME_SECRET_ACCESS_KEY
export AWS_REGION_=ap-southeast-2