The Client Library for LargeMouth BAAS
##Motivation Firebase is a Backend As A Service (BAAS) which allows developers to quickly build applications without worrying about the communication layer between the server and client. Firebase is awesome but the backend remains entirely proprietary. LargeMouth / SmallMouth attempt to recreate the Firebase api as an open-source project. Idealy a Firebase app could be easily moved to SmallMouth and vice versa.
bower install smallmouth
##Example ###Creating Resources Create a new resource just as you would with FireBase, except make the server referenced is a running instance of LargeMouth.
var chats = '';// If the defaultHost is defined, the following statement is equivalent to the previous.SmallMouthdefaultHost = "";chats = '/chats';
SmallMouth aggresively stores content within local storage on the client. As resources are created and data is saved, initially everything is stored locally before being saved to the server. Because all data is stored locally on the client, SmallMouth can be used as an entirely clientside store (note make sure a modern browser is used). Create a client side data structure by not including a server when instantiating a new resource:
var chats = '/chats';chatson'value'console.logsnapshotval;;
See a more complete example with AngularJS. ##Release notes
##Road map LargeMouth is under active development with the following roadmap. If interested in contributing, please fork the project!