summaryrefslogtreecommitdiff
path: root/src/bin/cli_server.js
blob: 823ae000b494b36a24b232b3576a4d83a8edcbb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * Start the Express HTTP server
 * @module bin/server
 */

import createServer from "app";

const EXPRESS_PORT = parseInt(process.env.EXPRESS_PORT) || 5000;

createServer().then(({ server }) => {
  server.listen(EXPRESS_PORT, () => {
    console.log(
      "Shoebox listening on http://localhost:" + server.address().port
    );
  });
});