Skip to content

ezhaka/tic-tac-toe

Repository files navigation

tic-tac-toe Build Status

Multiplayer tic-tac-toe game written in Kotlin and JS.

Getting Started

Prerequisites

  • JDK 8
  • Docker

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. In order to run the project you can execute this command in the checkout directory:

$ ./gradlew bootRun

It will setup database in a docker container and run the backend. Go to http://localhost:8080 in order to check this out.

Running backend from IntelliJ IDEA

If you want to run the backend from the IDE you should execute docker-compose manually:

$ docker-compose -f backend/docker-compose.yml up

Then execute whole project build:

$ ./gradlew build

This command will, among other things, build frontend project and create static assets that will be served by the backend.

Then you can just run TicTacToeApplication#main from the IDE.

Running frontend in the development mode

When you have backend running on port 8080, you can run webpack dev server, that will build the bundle incrementally on every code change:

$ cd frontend
$ yarn start

It will automatically open http://localhost:3000.

Built With

Authors

  • Anton Sukhonosenkoezhaka

License

This project is licensed under the MIT License.

Releases

No releases published

Packages

No packages published