An open API service indexing awesome lists of open source software.

https://github.com/js-data/js-data-levelup

LevelUp adapter for js-data.
https://github.com/js-data/js-data-levelup

Last synced: 4 months ago
JSON representation

LevelUp adapter for js-data.

Awesome Lists containing this project

README

        

js-data logo

## js-data-levelup [![npm version](https://img.shields.io/npm/v/js-data-levelup.svg?style=flat-square)](https://www.npmjs.org/package/js-data-levelup) [![Circle CI](https://img.shields.io/circleci/project/js-data/js-data-levelup/master.svg?style=flat-square)](https://circleci.com/gh/js-data/js-data-levelup/tree/master) [![npm downloads](https://img.shields.io/npm/dm/js-data-levelup.svg?style=flat-square)](https://www.npmjs.org/package/js-data-levelup) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/js-data/js-data-levelup/blob/master/LICENSE)

LevelUp adapter for [js-data](http://www.js-data.io/).

### API Documentation
[DSLevelUpAdapter](http://www.js-data.io/docs/dslevelupadapter)

### Project Status

__Latest Release:__ [![Latest Release](https://img.shields.io/github/release/js-data/js-data-levelup.svg?style=flat-square)](https://github.com/js-data/js-data-levelup/releases)

__Status:__

[![Dependency Status](https://img.shields.io/gemnasium/js-data/js-data-levelup.svg?style=flat-square)](https://gemnasium.com/js-data/js-data-levelup) [![Codacity](https://img.shields.io/codacy/63970b885dd74a8dbdb67084ac7017ba.svg?style=flat-square)](https://www.codacy.com/public/jasondobry/js-data-levelup/dashboard)

__Supported Platforms:__

[![node version](https://img.shields.io/badge/Node-0.10%2B-green.svg?style=flat-square)](https://github.com/js-data/js-data)

### Quick Start
`npm install --save js-data js-data-levelup`.

```js
var JSData = require('js-data');
var DSLevelUpAdapter = require('js-data-levelup');

var store = new JSData.DS();

// The levelup "db" object will be available at "adapter.db"
var adapter = new DSLevelUpAdapter('./db');

store.registerAdapter('levelup', adapter, { default: true });

// "store" will now use the LevelUp adapter for all async operations
```

### Changelog
[CHANGELOG.md](https://github.com/js-data/js-data-levelup/blob/master/CHANGELOG.md)

### Community
- [Gitter Channel](https://gitter.im/js-data/js-data) - Better than IRC!
- [Announcements](http://www.js-data.io/blog)
- [Mailing List](https://groups.io/org/groupsio/jsdata) - Ask your questions!
- [Issues](https://github.com/js-data/js-data-levelup/issues) - Found a bug? Feature request? Submit an issue!
- [GitHub](https://github.com/js-data/js-data-levelup) - View the source code for js-data.
- [Contributing Guide](https://github.com/js-data/js-data-levelup/blob/master/CONTRIBUTING.md)

### Contributing

First, support is handled via the [Mailing List](https://groups.io/org/groupsio/jsdata). Ask your questions there.

When submitting issues on GitHub, please include as much detail as possible to make debugging quick and easy.

- good - Your versions of js-data, js-data-levelup, etc., relevant console logs/error, code examples that revealed the issue
- better - A [plnkr](http://plnkr.co/), [fiddle](http://jsfiddle.net/), or [bin](http://jsbin.com/?html,output) that demonstrates the issue
- best - A Pull Request that fixes the issue, including test coverage for the issue and the fix

[Github Issues](https://github.com/js-data/js-data-levelup/issues).

#### Pull Requests

1. Contribute to the issue that is the reason you'll be developing in the first place
1. Fork js-data-levelup
1. `git clone https://github.com//js-data-levelup.git`
1. `cd js-data-levelup; npm install; bower install;`
1. `grunt go` (builds and starts a watch)
1. (in another terminal) `grunt karma:dev` (runs the tests)
1. Write your code, including relevant documentation and tests
1. Submit a PR and we'll review

### License

The MIT License (MIT)

Copyright (c) 2014-2015 Jason Dobry

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.