old_contents: """Provide APP constant for the purposes of manually running the flask app
  
  For example, set up environment variables then run the app::
          export FLASK_APP=smif.http_api.app
          export FLASK_DEBUG=1
          flask run
  """
  import os
  
  from smif.data_layer import DatafileInterface
  from smif.http_api import create_app
  
  
  def get_connection():
      """Return a data_layer connection
      """
      return DatafileInterface(
          os.path.join(os.path.dirname(__file__), '..', '..', 'tests', 'fixtures', 'single_run')
      )
  
  
  APP = create_app(
      static_folder=os.path.join(os.path.dirname(__file__), '..', 'app', 'dist'),
      template_folder=os.path.join(os.path.dirname(__file__), '..', 'app', 'dist'),
      get_connection=get_connection
  )
  
new_contents: """Provide APP constant for the purposes of manually running the flask app
  
  For example, build the front end, then run the app with environment variables::
          cd smif/app/
          npm run build
          cd ../http_api/
          FLASK_APP=smif.http_api.app FLASK_DEBUG=1 flask run
  """
  import os
  
  from smif.data_layer import DatafileInterface
  from smif.http_api import create_app
  
  
  def get_connection():
      """Return a data_layer connection
      """
      return DatafileInterface(
          os.path.join(os.path.dirname(__file__), '..', '..', 'tests', 'fixtures', 'single_run')
      )
  
  
  APP = create_app(
      static_folder=os.path.join(os.path.dirname(__file__), '..', 'app', 'dist'),
      template_folder=os.path.join(os.path.dirname(__file__), '..', 'app', 'dist'),
      get_connection=get_connection
  )
  
subject: Add front end build step to comment on running manually