Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmarti/minimongolibre
https://github.com/elmarti/minimongolibre
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/elmarti/minimongolibre
- Owner: elmarti
- License: mit
- Created: 2016-06-01T07:34:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-01T16:46:12.000Z (over 8 years ago)
- Last Synced: 2024-11-02T20:42:18.217Z (about 2 months ago)
- Language: JavaScript
- Size: 89.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MiniMongoLibre
Cloned from [eface2face's](https://github.com/eface2face/meteor-minimongo) NPM wrapper of Meteor's [MiniMongo](https://www.meteor.com/mini-databases), to create a version which is completely decoupled from the Meteor MiniMongo.This project is still under development, so is yet to be published on NPM. For now you will need to clone the project, run `npm install` and use browserify.
Create a collection using the following steps
var minimongo = require("./node_modules/minimongolibre")();
var collectionName = new minimongo.LocalCollection("collectionName");
Once you have done this, simply follow the [MiniMongo API](http://guide.meteor.com/collections.html) - findOne, find, insert etc.This database system is volatile meaning all data will be lost when you close the browser. The next step in this project will be to examine the best way to allow you to reactively communicate the state of the database, as is done in Meteor.