A simple tic-tac-toe implementation which allow two users to take turns at entering X and O. Define the end conditions of the game and provide an alert message for the different outcomes of the game. Keep track of the game states.
Get Docker Community Edition for your platform (Linux, Mac, Windows).
$ docker-compose up -d
$ docker-compose down
$ docker-compose up -d --build
Visit localhost:9000
on your browser.
$ docker-compose logs -f web
$ npm install
$ npm run dev
$ docker image build -f Dockerfile.prod -t tic-tac-toe:v1 .
$ docker container run -d -p 8080:8080 -e PORT=8080 tic-tac-toe:v1
Visit localhost:8080
on your browser.
$ npm install
$ npm run build
$ npx http-server -p 8080 dist
$ docker image build -f Dockerfile.prod -t tic-tac-toe:v1 .
$ docker image tag tic-tac-toe:v1 registry.heroku.com/nha-tic-tac-toe/web
$ docker image push registry.heroku.com/nha-tic-tac-toe/web
$ heroku container:release web