text: /*
   * Copyright 2017 The boardgame.io Authors
   *
   * Use of this source code is governed by a MIT-style
   * license that can be found in the LICENSE file or at
   * https://opensource.org/licenses/MIT.
   */
  
  import { Server, Origins } from 'boardgame.io/server';
  import TicTacToe from './src/tic-tac-toe/game';
  import Chess from './src/chess/game';
  
  const PORT = process.env.PORT || 8000;
  const server = Server({
    games: [TicTacToe, Chess],
    origins: [Origins.LOCALHOST],
  });
  server.run(PORT, () => {
    console.log(`Serving at: http://localhost:${PORT}`);
  });
  