Skip to content

Commit

Permalink
Use the official demo URL (#1629)
Browse files Browse the repository at this point in the history
Co-authored-by: Dylan Staley <88163+dstaley@users.noreply.github.com>
  • Loading branch information
leplatrem and dstaley committed Apr 4, 2022
1 parent b6d6022 commit d7eea18
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ An [Offline-First](http://offlinefirst.org/) JavaScript client for [Kinto](https
The idea is to persist data locally in the browser by default, then synchronizing them with the server explicitly when connectivity is guaranteed:

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

// Create and store a new post in the browser local database
Expand Down
2 changes: 1 addition & 1 deletion demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function main() {
});
var tasks = db.collection("tasks");
var syncOptions = {
remote: "https://kinto.dev.mozaws.net/v1/",
remote: "https://demo.kinto-storage.org/v1/",
headers: {Authorization: "Basic " + btoa("user:pass")}
};
document.getElementById("form")
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

await tasks.create({label: "First item", done: false});
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Then the JavaScript:

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.

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:
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:

- **The test server is flushed everyday at 7PM UTC;**
- 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.
Expand Down Expand Up @@ -316,7 +316,7 @@ Then, update the JavaScript:

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

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

```
$ 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
$ 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
HTTP/1.1 200 OK
Access-Control-Expose-Headers: Retry-After, Content-Length, Alert, Backoff
Connection: keep-alive
Expand Down

0 comments on commit d7eea18

Please sign in to comment.