An simple sinatra boilerplate to mock requests (plus: using ngrok)
mkdir preq
cd preq
wget https://gist.githubusercontent.com/andrewaguiar/ab2876978ef2a3c0ad86d84a8964e198/raw/5b18fd92922c3f69d60f5513bb4c4337925f3a53/README.md
wget https://gist.githubusercontent.com/andrewaguiar/ab2876978ef2a3c0ad86d84a8964e198/raw/5b18fd92922c3f69d60f5513bb4c4337925f3a53/app.rb
wget https://gist.githubusercontent.com/andrewaguiar/ab2876978ef2a3c0ad86d84a8964e198/raw/5b18fd92922c3f69d60f5513bb4c4337925f3a53/Gemfile
wget https://gist.githubusercontent.com/andrewaguiar/ab2876978ef2a3c0ad86d84a8964e198/raw/5b18fd92922c3f69d60f5513bb4c4337925f3a53/run
wget https://gist.githubusercontent.com/andrewaguiar/ab2876978ef2a3c0ad86d84a8964e198/raw/5b18fd92922c3f69d60f5513bb4c4337925f3a53/run-ngrok
chmod +x run
chmod +x run-ngrok
echo "yay"
# edit app.rb with your code
./run
# In another tab
./run-ngrok
# Access `http://localhost:4567` or the address given by ngrok