Arnaud 59837ece13
chore: fix typo (#19)
* Fix typo

* Fix rebase
2025-05-30 15:37:59 +02:00
..
2025-05-30 15:37:59 +02:00
2025-03-28 09:13:01 +01:00

Download example

Small example to show how to download a file in the browser with Codex.

Install dependencies

npm install

Build the javascript asset

CODEX_CID=REPLACE_BY_YOUR_CID npm run build

The response will be displayed as text, so it is better to test with .txt files.

Note: You can define CODEX_NODE_URL, default value is "http://localhost:8080".

Check the results

Open the index.html and open the web console.