text: // Copyright IBM Corp. 2018. All Rights Reserved.
  // Node module: @loopback/example-todo-list
  // This file is licensed under the MIT License.
  // License text available at https://opensource.org/licenses/MIT
  
  const application = require('@loopback/dist-util').loadDist(__dirname);
  
  module.exports = application;
  
  if (require.main === module) {
    // Run the application
    application.main().catch(err => {
      console.error('Cannot start the application.', err);
      process.exit(1);
    });
  }
  