Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 884 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 884 Bytes

Multiplayer Tic Tac Toe

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.

example

Getting Started

Postgres Database

Start a Postgres container using the following Docker command:

$ docker run \
  --rm \
  -e POSTGRES_PASSWORD=secret \
  -p 5432:5432 \
  postgres

TypeStack Server

Then cd into the server directory and run npm install to install the dependencies.

Start the server with the npm run dev

React Client

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.