Skip to content

Commit 6caa384

Browse files
AuHau2-towns
authored andcommitted
docs: use correct node's api port (#15)
1 parent b50c0b7 commit 6caa384

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const { Codex } = require("@codex-storage/sdk-js");
3737
To create a Codex instance, provide the REST API url to interact with the Codex client:
3838

3939
```js
40-
const codex = new Codex("http://localhost:3000");
40+
const codex = new Codex("http://localhost:8080");
4141
```
4242

4343
Then you can access any module like this:
@@ -61,7 +61,7 @@ const { Codex } = require("@codex-storage/sdk-js/async");
6161
To create a Codex instance, provide the REST API url to interact with the Codex client:
6262

6363
```js
64-
const codex = new Codex("http://localhost:3000");
64+
const codex = new Codex("http://localhost:8080");
6565
```
6666

6767
To use a module, you need to use the await syntax. If the module is not loaded yet, it will be imported first and then cached in memory.
@@ -75,7 +75,7 @@ const marketplace = await codex.marketplace();
7575
You can use basic authentication when creating a new Codex object:
7676

7777
```js
78-
const codex = new Codex("http://localhost:3000", {
78+
const codex = new Codex("http://localhost:8080", {
7979
auth: {
8080
basic: "MY BASIC AUTH SECRET"
8181
}
@@ -122,7 +122,7 @@ if (slots.error) {
122122
The following API assume that you have already a marketplace module loaded, example:
123123

124124
```js
125-
const codex = new Codex("http://localhost:3000");
125+
const codex = new Codex("http://localhost:8080");
126126
// When using the async api
127127
const marketplace = await codex.marketplace();
128128

@@ -270,7 +270,7 @@ const purchase = await marketplace.purchaseDetail(purchaseId);
270270
The following API assume that you have already a data module loaded, example:
271271

272272
```js
273-
const codex = new Codex("http://localhost:3000");
273+
const codex = new Codex("http://localhost:8080");
274274
// When using the async api
275275
const data = await codex.data();
276276

@@ -406,7 +406,7 @@ const result = await data.localDownload(cid);
406406
The following API assume that you have already a node module loaded, example:
407407

408408
```js
409-
const codex = new Codex("http://localhost:3000");
409+
const codex = new Codex("http://localhost:8080");
410410
// When using the async api
411411
const data = await codex.debug();
412412

@@ -444,7 +444,7 @@ const info = await debug.info();
444444
The following API assume that you have already a node module loaded, example:
445445

446446
```js
447-
const codex = new Codex("http://localhost:3000");
447+
const codex = new Codex("http://localhost:8080");
448448
// When using the async api
449449
const node = await codex.node();
450450

0 commit comments

Comments
 (0)