Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@barraponto
Created February 14, 2019 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barraponto/0130fe51a001e96e1e4034edba6a1acd to your computer and use it in GitHub Desktop.
Save barraponto/0130fe51a001e96e1e4034edba6a1acd to your computer and use it in GitHub Desktop.
const { Server } = require('boardgame.io/server');
const { TicTacToe } = require('gamux-tictactoe');
const logger = require('koa-logger');
const cors = require('koa-cors');
const server = Server({ games: [ TicTacToe ] });
server.app.use(logger());
server.app.use(cors());
server.run(8000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment