include require 'dotenv' Dotenv.load

the sinatra app would fail without those 2 lines of code because it would not be able to load the ENV['JUST_EAT_API_CREDENTIALS'] from the .env file