Skip to content

Commit 02a181a

Browse files
committed
docs: Add execution steps to cip68 example
1 parent 7d4643f commit 02a181a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

examples/deno_cip68/README.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,26 @@ function extractNFTRef(
7373
...parseDatum(datum),
7474
};
7575
}
76-
```
76+
```
77+
78+
## Typescript Bundle
79+
80+
Before being able to use our custom code in Oura, we need to instruct _Deno_ to "bundle" it. This process will resolve all dependencies (local or remote), transpile Typescript into Javascript and generate a single `.js` file which is ready to be used by _Oura_'s pipeline.
81+
82+
Run the following shell script to bundle our custom code:
83+
84+
```sh
85+
deno bundle parser.ts parser.js
86+
```
87+
88+
Assuming there aren't any errors in the code, a new `parser.js` should be generated in the same folder.
89+
90+
## Run Oura
91+
92+
We're now ready to run our Oura pipeline to get CIP68 reference NFT records. Assuming you have _Oura_ `v2` installed on your system, run the following shell script from the `examples/deno_cip68` folder to start the pipeline process:
93+
94+
```sh
95+
oura daemon --config ./daemon.toml
96+
```
97+
98+
After a while, you should start seeing JSON objects printed out through stdout.

0 commit comments

Comments
 (0)