text: 'use strict';
  
  import { startServer } from './lib/server';
  import getData from './lib/get-data';
  import logger from './lib/logger';
  
  getData()
    .then(() => {
      logger.log(logger.INFO, 'Newest data received - starting server');
      startServer();
    });
  