Horizon the realtime javascript backend
If you like the idea of Firebase but hosting your data somewhere else except your servers is not an option for you, then you might consider Horizon, the new open source javascript backend which offers similar features. Horizon let you build and deploy web or mobile apps