Skip to content

Commit d7eea18

Browse files
leplatremdstaley
andauthored
Use the official demo URL (#1629)
Co-authored-by: Dylan Staley <[email protected]>
1 parent b6d6022 commit d7eea18

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ An [Offline-First](http://offlinefirst.org/) JavaScript client for [Kinto](https
1111
The idea is to persist data locally in the browser by default, then synchronizing them with the server explicitly when connectivity is guaranteed:
1212

1313
```js
14-
const kinto = new Kinto({ remote: "https://kinto.dev.mozaws.net/v1/" });
14+
const kinto = new Kinto({ remote: "https://demo.kinto-storage.org/v1/" });
1515
const posts = kinto.collection("posts");
1616

1717
// Create and store a new post in the browser local database

demo/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function main() {
77
});
88
var tasks = db.collection("tasks");
99
var syncOptions = {
10-
remote: "https://kinto.dev.mozaws.net/v1/",
10+
remote: "https://demo.kinto-storage.org/v1/",
1111
headers: {Authorization: "Basic " + btoa("user:pass")}
1212
};
1313
document.getElementById("form")

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
```js
66
const tasks = new Kinto({
7-
remote: "https://kinto.dev.mozaws.net/v1"
7+
remote: "https://demo.kinto-storage.org/v1"
88
}).collection("tasks");
99

1010
await tasks.create({label: "First item", done: false});

docs/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ Then the JavaScript:
283283

284284
Synchronizing local data is done by calling the [`#sync()`](https://doc.esdoc.org/github.com/Kinto/kinto.js/class/src/collection.js~Collection.html#instance-method-sync) method on our collection.
285285

286-
Data synchronization is performed over HTTP and requires a Kinto server; now's probably a good time to tell you about the public mozilla-hosted Kinto server available at `https://kinto.dev.mozaws.net/v1` we'll use for this tutorial:
286+
Data synchronization is performed over HTTP and requires a Kinto server; now's probably a good time to tell you about the public mozilla-hosted Kinto server available at `https://demo.kinto-storage.org/v1` we'll use for this tutorial:
287287

288288
- **The test server is flushed everyday at 7PM UTC;**
289289
- You'll need to serve the web page over HTTP so Kinto.js can talk to the server. To do so, you can use node's [http-server](https://github.com/indexzero/http-server), Python's [SimpleHTTPServer](https://docs.python.org/2/library/simplehttpserver.html) or whatever Web server you like.
@@ -316,7 +316,7 @@ Then, update the JavaScript:
316316

317317
```js
318318
const syncOptions = {
319-
remote: "https://kinto.dev.mozaws.net/v1",
319+
remote: "https://demo.kinto-storage.org/v1",
320320
headers: {Authorization: "Basic " + btoa("user:pass")}
321321
};
322322

@@ -392,7 +392,7 @@ Let's create a conflict by:
392392
To do that, we are using [HTTPie](https://github.com/jakubroztocil/httpie), an easy to use CLI http client.
393393

394394
```
395-
$ echo '{"data": {"title": "eat even more cheese"}}' | http -a user:pass PATCH https://kinto.dev.mozaws.net/v1/buckets/default/collections/tasks/records/81f130ac-334b-4a9b-b53c-ea8c9488bf76
395+
$ echo '{"data": {"title": "eat even more cheese"}}' | http -a user:pass PATCH https://demo.kinto-storage.org/v1/buckets/default/collections/tasks/records/81f130ac-334b-4a9b-b53c-ea8c9488bf76
396396
HTTP/1.1 200 OK
397397
Access-Control-Expose-Headers: Retry-After, Content-Length, Alert, Backoff
398398
Connection: keep-alive

0 commit comments

Comments
 (0)