Skip to content

toddmedema/electrify

Repository files navigation

Electrify

A mobile-friendly web game that teaches about the electricity markets in the style of a Tycoon game. Hosted at https://electrifygame.com

Getting Started

Setup

Requires NodeJS v21+. Check your version with node -v.

We recommend using NVM to install Node to make it easier to swap between and upgrade Node versions.

Windows: must be run within a Unix-like shell (such as Git Bash).

With Node.js installed, run the following from the root of the repository:

npm install

To use the online high score capabilities, you will need to contact an admin to get a Firebase api key.

Development Workflow: Serve & watch

npm start

This runs the app at http://localhost:3000.

Run tests

npm test

This runs the unit tests defined in files with the .test.tsx extensio.

Release checklist

To release, you'll need to install and authenticate the aws cli.

Before deploying to production, run ./deploy.sh and have it deploy to beta. Then check that:

  • basic functionality works (app loads, game starts, music plays)

Once functionality is verified, you can deploy prod with the same script.

Troubleshooting

If you're trying to debug the Redux store, it's wired up to use the Dev Tool extension for advanced state debugging: https://chromewebstore.google.com/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd

About

Take Charge of the Power Market

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •