Grocery-sync sample app not working with iOS 10, Xcode 8

I downloaded the Grocery-Sync sample application and added the latest CBL framework. The app compiles and I can add grocery items to the local DB. However the replication always fails. I keep seeing error Bad Gateway.
I tried to curl into the the Grocery-Sync sync gateway as curl http://64.13.147.217:4984 and got no response at all.
Let me try downgrading Xcode to ~7 and compile the code against iOS 9. Does anyone have other suggestions?
Thanks!

Looks like the server we host the database at is down. As a workaround, you can run your own Sync Gateway (or CouchDB) locally and change the URL in AppDelegate.m to point to it. Sorry about that; I’ll try to get someone to fix it.

Running a gateway locally. Thanks for the quick response!