|
| 1 | +<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="64" height="64" /> |
| 2 | + |
| 3 | +## js-data-nedb [](https://www.npmjs.org/package/js-data-nedb) [](https://www.npmjs.org/package/js-data-nedb) [](https://circleci.com/gh/js-data/js-data-nedb/tree/master) [](https://www.npmjs.org/package/js-data-nedb) [](https://github.com/js-data/js-data-nedb/blob/master/LICENSE) |
| 4 | + |
| 5 | +nedb adapter for [js-data](http://www.js-data.io/). |
| 6 | + |
| 7 | +### API Documentation |
| 8 | +[DSNedbAdapter](http://www.js-data.io/docs/dsnedbadapter) |
| 9 | + |
| 10 | +### Project Status |
| 11 | + |
| 12 | +__Latest Release:__ [](https://github.com/js-data/js-data-nedb/releases) |
| 13 | + |
| 14 | +### Quick Start |
| 15 | +`bower install --save js-data js-data-nedb` or `npm install --save js-data js-data-nedb`. |
| 16 | + |
| 17 | +Load `js-data-nedb.js` after `js-data.js`. |
| 18 | + |
| 19 | +```js |
| 20 | +var adapter = new DSLocalStorageAdapter(); |
| 21 | + |
| 22 | +var store = new JSData.DS(); |
| 23 | +store.registerAdapter('nedb', adapter, { default: true }); |
| 24 | + |
| 25 | +// "store" will now use the nedb adapter for all async operations |
| 26 | +``` |
| 27 | + |
| 28 | +### Changelog |
| 29 | +[CHANGELOG.md](https://github.com/js-data/js-data-nedb/blob/master/CHANGELOG.md) |
| 30 | + |
| 31 | +### Community |
| 32 | +- [Gitter Channel](https://gitter.im/js-data/js-data) - Better than IRC! |
| 33 | +- [Announcements](http://www.js-data.io/blog) |
| 34 | +- [Mailing List](https://groups.io/org/groupsio/jsdata) - Ask your questions! |
| 35 | +- [Issues](https://github.com/js-data/js-data-nedb/issues) - Found a bug? Feature request? Submit an issue! |
| 36 | +- [GitHub](https://github.com/js-data/js-data-nedb) - View the source code for js-data. |
| 37 | +- [Contributing Guide](https://github.com/js-data/js-data-nedb/blob/master/CONTRIBUTING.md) |
| 38 | + |
| 39 | +### Contributing |
| 40 | + |
| 41 | +First, support is handled via the [Gitter Channel](https://gitter.im/js-data/js-data) and the [Mailing List](https://groups.io/org/groupsio/jsdata). Ask your questions there. |
| 42 | + |
| 43 | +When submitting issues on GitHub, please include as much detail as possible to make debugging quick and easy. |
| 44 | + |
| 45 | +- good - Your versions of js-data, js-data-nedb, etc., relevant console logs/error, code examples that revealed the issue |
| 46 | +- better - A [plnkr](http://plnkr.co/), [fiddle](http://jsfiddle.net/), or [bin](http://jsbin.com/?html,output) that demonstrates the issue |
| 47 | +- best - A Pull Request that fixes the issue, including test coverage for the issue and the fix |
| 48 | + |
| 49 | +[Github Issues](https://github.com/js-data/js-data-nedb/issues). |
| 50 | + |
| 51 | +#### Submitting Pull Requests |
| 52 | + |
| 53 | +1. Contribute to the issue/discussion that is the reason you'll be developing in the first place |
| 54 | +1. Fork js-data-nedb |
| 55 | +1. `git clone [email protected]:<you>/js-data-nedb.git` |
| 56 | +1. `cd js-data-nedb; npm install; bower install;` |
| 57 | +1. Write your code, including relevant documentation and tests |
| 58 | +1. Run `grunt test` (build and test) |
| 59 | +1. Your code will be linted and checked for formatting, the tests will be run |
| 60 | +1. The `dist/` folder & files will be generated, do NOT commit `dist/*`! They will be committed when a release is cut. |
| 61 | +1. Submit your PR and we'll review! |
| 62 | +1. Thanks! |
| 63 | + |
| 64 | +### License |
| 65 | + |
| 66 | +The MIT License (MIT) |
| 67 | + |
| 68 | +Copyright (c) 2014-2015 Jason Dobry |
| 69 | + |
| 70 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 71 | +of this software and associated documentation files (the "Software"), to deal |
| 72 | +in the Software without restriction, including without limitation the rights |
| 73 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 74 | +copies of the Software, and to permit persons to whom the Software is |
| 75 | +furnished to do so, subject to the following conditions: |
| 76 | + |
| 77 | +The above copyright notice and this permission notice shall be included in all |
| 78 | +copies or substantial portions of the Software. |
| 79 | + |
| 80 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 81 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 82 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 83 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 84 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 85 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 86 | +SOFTWARE. |
0 commit comments