A web multiplayer Tron game like with curves
From a fresh clone
nvm install 10.13.0
nvm use
npm install
./node_modules/.bin/gulp
Run the game with:
node bin/curvytron.js
Create all the necessary infrastructure in terraform by doing:
cd terraform
terraform init \
-backend-config="bucket=<tf backend bucket>" \
-backend-config="dynamodb_table=<tf dynamodb table>"
terraform apply [-var acm_certificate_arn="<acm arn>"]
cd -
Note that the variable acm_certificate_arn is optional.
Whenever you want to deploy a new version:
aws ecr get-login-password --region eu-west-2 | docker login --username AWS --password-stdin <ecr repo>
docker build . -t <ecr repo>
docker push <ecr repo>
cd terraform
terraform taint aws_ecs_task_definition.curvytron
terraform apply [-var acm_certificate_arn="<acm arn>"]
cd -