UNPKG

thaw-reversi-web-app

Version:

A playable Express.js Reversi (Othello) Web application.

27 lines (16 loc) 583 B
#!/usr/bin/env node // thaw-tic-tac-toe-web-app/src/server.js 'use strict'; // require('rootpath')(); const app = require('..'); const config = require('../config/config'); // I.e. ./config.json const serverListenPort = config.serverListenPort || 3000; // Start the server: var server = app.listen(serverListenPort, function () { let host = server.address().address; if (host === '::') { host = 'localhost'; } console.log('The Express.js server is listening at http://%s:%s (protocol %s)', host, server.address().port, server.address().family); }); // End of File.