sengjea / curvytron

A web multiplayer Tron game like with curves

Home Page:http://www.curvytron.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Curvytron

A web multiplayer Tron game like with curves

Building for Development

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

Installation


Wanna help?


We need to go deeper

Deploying

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 -

About

A web multiplayer Tron game like with curves

http://www.curvytron.com

License:MIT License


Languages

Language:JavaScript 62.8%Language:CSS 29.5%Language:HTML 7.0%Language:HCL 0.6%Language:Dockerfile 0.0%