Skip to content

Commit 567de80

Browse files
authored
3.0.0 (#36)
1 parent 2d14dea commit 567de80

15 files changed

+13170
-1116
lines changed

.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"es2015"
4+
]
5+
}

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
##### 3.0.0 - 23 August 2017
2+
3+
Stable 3.0.0 release
4+
15
##### 3.0.0-rc.1 - 11 December 2016
26

37
- Updated dependencies

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2016 js-data-firebase project authors
3+
Copyright (c) 2014-2017 js-data-firebase project authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+91-33
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,104 @@
22

33
# js-data-firebase
44

5-
[![Slack Status][sl_b]][sl_l]
6-
[![npm version][npm_b]][npm_l]
7-
[![Circle CI][circle_b]][circle_l]
8-
[![npm downloads][dn_b]][dn_l]
9-
[![Coverage Status][cov_b]][cov_l]
10-
11-
Firebase adapter for [js-data](http://www.js-data.io/).
12-
13-
To get started, visit __[http://js-data.io](http://www.js-data.io/docs/js-data-firebase)__.
5+
[![Slack][1]][2]
6+
[![NPM][3]][4]
7+
[![Tests][5]][6]
8+
[![Downloads][7]][8]
9+
[![Coverage][9]][10]
1410

1511
Tested on IE9, Chrome 46, Firefox 41 & Safari 7.1 using
1612
<img src="https://raw.githubusercontent.com/js-data/js-data-firebase/master/bs.jpg" alt="bs logo" title="browserstack" width="150" height="35" style="vertical-align: middle" />
1713

18-
## Links
14+
A Firebase adapter for the [JSData Node.js ORM][11].
15+
16+
### Installation
17+
18+
npm install --save js-data js-data-firebase firebase
19+
20+
### Usage (Browser)
21+
22+
```js
23+
import { FirebaseAdapter } from 'js-data-firebase';
24+
25+
window.firebase.initializeApp({
26+
apiKey: window.API_KEY,
27+
authDomain: window.AUTH_DOMAIN,
28+
databaseURL: window.DATABASE_URL
29+
});
30+
31+
// Create an instance of FirebaseAdapter
32+
const adapter = new FirebaseAdapter({
33+
db: window.firebase.database()
34+
});
35+
36+
// Other JSData setup hidden
37+
38+
// Register the adapter instance
39+
store.registerAdapter('firebase', adapter, { default: true });
40+
```
41+
42+
### Usage (Node.js)
43+
44+
```js
45+
import firebase from 'firebase';
46+
import { FirebaseAdapter } from 'js-data-firebase';
47+
48+
firebase.initializeApp({
49+
databaseURL: process.env.DATABASE_URL,
50+
serviceAccount: process.env.KEY_FILENAME || 'key.json'
51+
});
52+
53+
// Create an instance of FirebaseAdapter
54+
const adapter = new FirebaseAdapter({
55+
db: firebase.database()
56+
});
57+
58+
// Other JSData setup hidden
59+
60+
// Register the adapter instance
61+
store.registerAdapter('firebase', adapter, { default: true });
62+
```
63+
64+
### JSData + Firebase Tutorial
65+
66+
Start with the [JSData + Firebase tutorial][12] or checkout the [API Reference Documentation][13].
67+
68+
### Need help?
69+
70+
Please [post a question][14] on Stack Overflow. **This is the preferred method.**
71+
72+
You can also chat with folks on the [Slack Channel][15]. If you end up getting
73+
your question answered, please still consider consider posting your question to
74+
Stack Overflow (then possibly answering it yourself). Thanks!
75+
76+
### Want to contribute?
1977

20-
* [Quick start](http://www.js-data.io/docs/home#quick-start) - Get started in 5 minutes
21-
* [Guides and Tutorials](http://www.js-data.io/docs/home) - Learn how to use JSData
22-
* [`FirebaseAdapter` Guide](http://www.js-data.io/docs/js-data-firebase) - Learn how to use `FirebaseAdapter`
23-
* [API Reference Docs](http://api.js-data.io) - Explore components, methods, options, etc.
24-
* [Community & Support](http://js-data.io/docs/community) - Find solutions and chat with the community
25-
* [General Contributing Guide](http://js-data.io/docs/contributing) - Give back and move the project forward
26-
* [Contributing to js-data-firebase](https://github.com/js-data/js-data-firebase/blob/master/.github/CONTRIBUTING.md)
78+
Awesome! You can get started over at the [Contributing guide][16].
2779

28-
## License
80+
Thank you!
2981

30-
The MIT License (MIT)
82+
### License
3183

32-
Copyright (c) 2014-2016 js-data-firebase project authors
84+
[The MIT License (MIT)][17]
3385

34-
* [LICENSE](https://github.com/js-data/js-data-firebase/blob/master/LICENSE)
35-
* [AUTHORS](https://github.com/js-data/js-data-firebase/blob/master/AUTHORS)
36-
* [CONTRIBUTORS](https://github.com/js-data/js-data-firebase/blob/master/CONTRIBUTORS)
86+
Copyright (c) 2014-2017 [js-data-firebase project authors][18]
3787

38-
[sl_b]: http://slack.js-data.io/badge.svg
39-
[sl_l]: http://slack.js-data.io
40-
[npm_b]: https://img.shields.io/npm/v/js-data-firebase.svg?style=flat
41-
[npm_l]: https://www.npmjs.org/package/js-data-firebase
42-
[circle_b]: https://img.shields.io/circleci/project/js-data/js-data-firebase.svg?style=flat
43-
[circle_l]: https://circleci.com/gh/js-data/js-data-firebase
44-
[dn_b]: https://img.shields.io/npm/dm/js-data-firebase.svg?style=flat
45-
[dn_l]: https://www.npmjs.org/package/js-data-firebase
46-
[cov_b]: https://img.shields.io/codecov/c/github/js-data/js-data-firebase.svg?style=flat
47-
[cov_l]: https://codecov.io/github/js-data/js-data-firebase
88+
[1]: http://slack.js-data.io/badge.svg
89+
[2]: http://slack.js-data.io
90+
[3]: https://img.shields.io/npm/v/js-data-firebase.svg?style=flat
91+
[4]: https://www.npmjs.org/package/js-data-firebase
92+
[5]: https://img.shields.io/circleci/project/js-data/js-data-firebase.svg?style=flat
93+
[6]: https://circleci.com/gh/js-data/js-data-firebase
94+
[7]: https://img.shields.io/npm/dm/js-data-firebase.svg?style=flat
95+
[8]: https://www.npmjs.org/package/js-data-firebase
96+
[9]: https://img.shields.io/codecov/c/github/js-data/js-data-firebase.svg?style=flat
97+
[10]: https://codecov.io/github/js-data/js-data-firebase
98+
[11]: http://www.js-data.io/
99+
[12]: http://www.js-data.io/docs/js-data-firebase
100+
[13]: http://api.js-data.io/js-data-firebase
101+
[14]: http://stackoverflow.com/questions/tagged/jsdata
102+
[15]: http://slack.js-data.io/
103+
[16]: https://github.com/js-data/js-data-firebase/blob/master/.github/CONTRIBUTING.md
104+
[17]: https://github.com/js-data/js-data-firebase/blob/master/LICENSE
105+
[18]: https://github.com/js-data/js-data-firebase/blob/master/AUTHORS

circle.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@ general:
44
- gh-pages
55
machine:
66
node:
7-
version: 5.7.0
7+
version: 6.11.2
88
dependencies:
99
pre:
1010
- npm i -g npm
1111
- npm i -g nyc codecov
12-
- npm i js-data@^3.0.0-beta.6 firebase
1312
test:
1413
pre:
1514
- echo $KARMA_CONFIG > config.js
1615
- echo $KEYFILE > key.json
1716
post:
18-
- nyc report --reporter=lcov | codecov
17+
- nyc report --reporter=lcov > coverage.lcov && codecov
1918
general:
2019
artifacts:
2120
- "dist"

conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"templates": {
1515
"theme": "jsdata",
1616
"systemName": "js-data-firebase",
17-
"copyright": "js-data-firebase Copyright © 2014-2016 js-data-firebase project authors",
17+
"copyright": "js-data-firebase Copyright © 2014-2017 js-data-firebase project authors",
1818
"outputSourceFiles": true,
1919
"linenums": true,
2020
"footer": "<div style=\"text-align:center\"><a href=\"/\">api.js-data.io</a>&nbsp;&#8226;&nbsp;<a href=\"http://js-data.io\">js-data.io</a></div>",

0 commit comments

Comments
 (0)