一个用于 JavaScript 的 JSON ODM (对象文档映射器),可在服务器或浏览器中使用。
This Project aims to be provide a json object document mapper.
Why would I need this?
There are many cases where you do not want to have the server query your data. You may also see this mapper as a fancy way to filter your data or prepare a view model.
The original use case was an ionic app that was not interactive so providing a server backend was not needed, but structuring my data
into joinable collections seemed very helpful.
And if you can use a server you may consider our new WebSocket server project "connectanum" for Publish/Subscribe and RPC communication
If you like the project please support it with a star here on GitHub
If commercial support is needed please contact me.
You can find the documentation here or compiled to the folder /docs/gen/*.
npm install json-odmSince PhantomJs has been archived, jsonOdm needed to switch to chrome headless for its test. To run tests have Chrome installed!
npm install json-odm
cd npm_modules/json-odm/
npm install
gulpUnit test ran successfully under Chrome,iOS7+,IE9+,Firefox,Android 4.4.2+
To be tested: Safari on OSX, IE8(test driver does not run in IE < 9 so it will be hard to test)
This is only a basic example. Find a lot more in the docs, i.e. how to use $geoWithin
…暂无开放 Issues,或尚未同步最近议题。