cal-overflow / pacman-overflow

(An incomplete) Multiplayer Pac-Man game
https://youtube.com/playlist?list=PLkmibBUrq1z3baruH19SBAkc2VUuX7zPZ
2 stars 0 forks source link
aws game nodejs pacman

Pac-Man Overflow

An attempt at a Multiplayer Pac-Man game. This project has been archived since Namco requested that the site be taken down while the project was still in beta.

Learn more about the project via this blog post or these dev log videos.

Running locally

Recommended software

Build setup

Run development locally

# ensure node version is correct
$ nvm use

# install dependencies
$ npm install

# run in development mode (localhost:3000)
$ npm run dev

Run unit tests

Unit tests are implemented with Jest.

$ npm run test

Docker

You may find docker builds for each release on docker hub.

Build the docker image with

docker build -t <image-name> .

Run the docker container with

docker run <image-name>

See additional options here.

Deploying the application

1. Create an IAM Role

In your AWS Account, create a new IAM Role with the permissions you deem necessary. This must include Cloudformation and EC2. Refer to GitHub's docs for Configuring OpenID Connect in AWS for guidance.

2. Create an SSH keypair on AWS

See AWS Create key pairs documentation.

3. Create a DockerHub account and access token

DockerHub is used as the artifactory for storing Docker images.

Create an access token with read/write access.

4. Add essential secrets to your GitHub repository.

Add the following secrets via Repository settings > Secrets > Actions.

5. Trigger a deploy

To trigger a deploy, simply commit changes to the master branch.