Firefox/Kinto: Difference between revisions

Jump to navigation Jump to search
kinto-client has been renamed kinto-http
(add mochitests to suites)
(kinto-client has been renamed kinto-http)
Line 20: Line 20:
= Usage =
= Usage =


Leveraging the [https://github.com/Kinto/kinto-client Kinto HTTP client] in Gecko looks like this:
Leveraging the [https://github.com/Kinto/kinto-http.js Kinto HTTP client] in Gecko looks like this:


<pre>
<pre>
Line 104: Line 104:
Two client libraries are embedded in Firefox:
Two client libraries are embedded in Firefox:


* <code>Kinto/kinto-client.js</code>: for direct interactions with the Kinto HTTP API
* <code>Kinto/kinto-http.js</code>: for direct interactions with the Kinto HTTP API
* <code>Kinto/kinto.js</code>: for offline persistence in internal SQLite
* <code>Kinto/kinto.js</code>: for offline persistence in internal SQLite


Line 111: Line 111:
The Kinto client libraries are developed independently on Github:
The Kinto client libraries are developed independently on Github:


* [https://github.com/Kinto/kinto-client kinto-client] is the HTTP client for the Kinto REST API;  
* [https://github.com/Kinto/kinto-http.js kinto-http] is the HTTP client for the Kinto REST API;  
* [https://github.com/Kinto/kinto.js kinto.js] is the offline-first client for Kinto.
* [https://github.com/Kinto/kinto.js kinto.js] is the offline-first client for Kinto.


Line 130: Line 130:
</pre>
</pre>


==== kinto-client.js ====
==== kinto-http.js ====


From the kinto-client.js repo, generate the <code>moz-kinto-http-client.js</code> file:
From the kinto-http.js repo, generate the <code>moz-kinto-http-client.js</code> file:


<pre>
<pre>
Line 214: Line 214:
=== Submit patch ===
=== Submit patch ===


> Patch are contributed to kinto.js and kinto-client.js, which are first released on NPM.
> Patch are contributed to kinto.js and kinto-http.js, which are first released on NPM.


'''DO NOT''' land files that are not tagged officially on upstream repositories.
'''DO NOT''' land files that are not tagged officially on upstream repositories.
68

edits

Navigation menu