Would you like to play a game?
This game was created as a badge challenge alongside the DistrictCon hacker conference in Washington, DC in February 2025.
- OPTIONAL: Create an SSL certificate for
localhost. Put the decrypted key and crt in alocalcertdirectory inside this project. - Install Node.js (check the
package.jsonfile to see what version the site runs on) - Install and run Redis
- Install the dependencies with
npm install - Configure your environment variables by copying
.env.exampleand renaming it to.env, then change the values to match your local environment!
Now you should be ready to run the application locally with node . (or use npm run watch to continuously watch for file changes and restart the app).
Open CLI to heroku redis: heroku redis:cli -a disco-game -c disco-game
Get keys matching a pattern: KEYS disco_code_1010*
Add a new code to be used by a player: SET disco_code_[UUID] ""
Get a player's data: GET disco_user_[handle]