import { Backend } from './backend' ; const backend = new Backend ( ) ; const port = process . env . PORT || 5000 ; backend . server . listen ( port ) ; backend . server . on ( 'error' , error => { console . log ( 'ERROR' , error ) ; } ) ; backend . server . on ( 'listening' , ( ) => { console . log ( `==> Listening on port ${ port }. Open up http://localhost:${ port }/ in your browser.` ) ; } ) ;