- Install docker for mac by following the instraction in the following page:
https://docs.docker.com/docker-for-mac/
- Clone the project
git clone https://github.com/woraphol-j/wow-wings
- Run the following command in the project directory:
- Use the following api endpoints to query or post data
POST http://localhost:3000/api/plays/submit
Json input =
{
"name" : "name",
"score" : 30
}
http://localhost:3000/api/plays?filter[include]=player&filter[fields][playerId]=false&filter[order]=submitTime DESC
http://localhost:3000/api/players?&filter[order]=highestScore DESC
- To retrieve scores for each player
http://localhost:3000/api/players/{playerId}/plays
- Follow the steps in AWS ECR to build, tag and push image.
- ecs-cli configure --region ap-southeast-1 --cluster ecs-wow-wings
- ecs-cli up --keypair bank_at_home --capability-iam --size 2 --instance-type t2.micro
- ecs-cli compose up