Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alekcz/sails-firebase
Waterline adapter for Firebase
https://github.com/alekcz/sails-firebase
Last synced: 1 day ago
JSON representation
Waterline adapter for Firebase
- Host: GitHub
- URL: https://github.com/alekcz/sails-firebase
- Owner: alekcz
- Created: 2016-05-07T14:08:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-09T18:40:12.000Z (over 8 years ago)
- Last Synced: 2024-11-05T06:32:54.587Z (10 days ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![[email protected]](http://i.imgur.com/RIvu9.png)
# sails-firebase
[![Build Status](https://travis-ci.org/alekcz/sails-firebase.svg?branch=master)](https://travis-ci.org/alekcz/sails-firebase) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://img.shields.io/badge/license-MIT-blue.svg)A [Waterline](https://github.com/balderdashy/waterline) adapter for Firebase. May be used in a [Sails](https://github.com/balderdashy/sails) app or anything using Waterline for the ORM.
## Status
THIS IS A WORK IN PROGRESS- sails-firebase is currently a `semantic` only adapter
- Create is mostly functional
- Find is rudimentary
- Update and Destroy are not yet implemented## Installation
NOT YET ON NPMInstall from NPM.
```bash
$ npm install sails-firebase --save
```## Sails Configuration
### Using with Sails v0.11.x
Add the following config to the `config/connections.js` file:
```javascript
module.exports.connections = {someFirebaseRef: {
adapter: 'sails-firebase',
url: 'https://mediocreappname.firebaseio.com', // Required. The full URL is used to allow for paid for firebase instances
secret: "thisissupersuperdupersecret", // Required. The secret is used to generate an authentication token for the connection.
database: 'default' // This is used to allow multiple 'databases' in the same firebase app
}
};
```## License
### The MIT License (MIT)
Copyright © 2016 Alexander Oloo
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.