github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/build-blockchain-insurance-app-master/web/www/server.js (about)

     1  #! /usr/bin/env node
     2  'use strict';
     3  
     4  import 'babel-polyfill';
     5  import dotenv from 'dotenv';
     6  import server from './app';
     7  
     8  if (process.env.NODE_ENV === 'production') {
     9    require('babel-register');
    10  }
    11  
    12  const port = process.env.PORT || process.env.VCAP_APP_PORT || 3000;
    13  
    14  dotenv.config({ silent: true });
    15  
    16  server.listen(port, () => {
    17    console.log('Server running on port: %d', port);
    18  });