Skip to content

battistar/tic-tac-toe

Repository files navigation

Tic tac toe

Tic tac toe game build with React.

The app is available on https://battistar.github.io/tic-tac-toe/.

Development

You can setup and run the application in your local environment in different ways:

Docker

Move in dev folder and make executable run.sh:

sudo chmod +x run.sh

The you can build the Docker image and run the container by:

./run.sh start

Open http://localhost:3000 to view the application in the browser.

To teardown the environment run:

./run.sh stop

npm

First setup nvm, then move in the main folder, where the .nvmrc file are in, and run:

nvm use

Now you can run the application on the node environment selected for the development:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

Deployment

Every push on the master branch, trigger a GitHub action that check the code validity and push a new version of it on GitHub pages.