This repo contains a frontend and backend for a multiplayer tic tac toe game. It uses Typescript, Koa, routing-controllers and TypeORM in the backend and React/Redux in the frontend. The backend exposes a REST API but also sends messages over websockets using SocketIO.
Start a Postgres container using the following Docker command:
$ docker run \
--rm \
-e POSTGRES_PASSWORD=secret \
-p 5432:5432 \
postgres
Then cd
into the server
directory and run npm install
to install the dependencies.
Start the server with the npm run dev
Open another terminal session and cd
into the client
directory, then run npm install
to install dependencies and run npm start
to start the dev server.