ForerunnerDB is a NoSQL database for browsers and Node.js and allows you to CRUD your data client-side with the same query language as MongoDB.
What Questions Should Have This Tag?
Questions that are directly related to ForerunnerDB should include this tag so that expert users of Forerunner can help answer your questions.
Introduction
ForerunnerDB allows you to create, read, update and delete JSON objects called documents that are stored in collections. Collections are like tables in traditional databases such as MySQL. Collections of documents can be queried using the same query language as MongoDB so those familiar with MongoDB will find it easy to get started with ForerunnerDB.
You can find out more about ForerunnerDB and read the full manual and documentation on the official site at http://www.forerunnerdb.com.
Tutorials
You can find tutorials on the official site at http://www.forerunnerdb.com including how to include ForerunnerDB on your web site and a full todo-list application in 39 lines of code.
Basic Usage
When you have ForerunnerDB loaded on your HTML page you can create a new database and store data in it immediately. To create a new database you use:
var fdb = new ForerunnerDB(),
db = fdb.db('myDbName');
Collections are created automatically when requested so you can create or get a collection via:
var collection = db.collection('myCollectionName');
Storing documents (JSON objects) in Forerunner is very easy, simply insert the document like so:
collection.insert({ name: 'Jim', age: 15 });
Once you have documents in a collection you can query it like this:
var arrayOfJims = collection.find({ name: 'Jim' });
Updating a record is just as simple, pass the query to match the documents you wish to update, then the change you wish to make. To update all documents where the name === 'Jim' to age 20 simply write:
collection.update({ name: 'Jim' }, { age: 20 });
Finally you can remove documents as easily as inserting them:
collection.remove({ name: 'Jim' });
For a detailed overview of the query language ForerunnerDB uses please see the documentation on the official website at http://www.forerunnerdb.com.