Skip to content

Commit 9c96673

Browse files
committed
Rearrange README
1 parent d90e94e commit 9c96673

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

README.md

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* [Enter nix shell](#enter-nix-shell)
77
* [Setup `nft.storage` key](#setup--nftstorage--key)
88
* [Optional: Copy testnet node database](#optional--copy-testnet-node-database)
9-
* [Optional: Mint your own NFTs](#optional--mint-your-own-nfts)
109
* [Start services](#start-services)
1110
* [Start ogmios-datum-cache block fetcher](#start-ogmios-datum-cache-block-fetcher)
11+
* [Optional: Mint your own NFTs](#optional--mint-your-own-nfts)
1212
- [Components](#components)
1313
* [`nft-marketplace`](#-nft-marketplace-)
1414
* [`ogmios-datum-cache`](#-ogmios-datum-cache-)
@@ -52,6 +52,37 @@ $ mkdir -p data/cardano-node/cardano-node-data
5252
$ cp -r /path/to/old/db data/cardano-node/cardano-node-data/.
5353
```
5454

55+
### Start services
56+
57+
```shell
58+
$ ./buildFrontend.sh
59+
$ arion up
60+
```
61+
62+
Please note that `arion up` will require a full cardano node to sync, which can take some time. At time of writing (April, 2022), the current tip is at slot 56000000 and counting.
63+
64+
Once the chain is synced, you should be able to view the dApp UI from `localhost:8080`
65+
66+
Ensure that Nami is set to Testnet, that you have some Test Ada, and that you've set collateral in Nami.
67+
68+
69+
### Start ogmios-datum-cache block fetcher
70+
71+
Necessary untill [#20](https://github.com/mlabs-haskell/ogmios-datum-cache/issues/20) is implemented.
72+
73+
```shell
74+
$ curl --location --request POST 'localhost:9999/control/fetch_blocks' -i\
75+
--header 'Content-Type: application/json' \
76+
--data-raw '
77+
{
78+
"slot": 44366242,
79+
"id": "d2a4249fe3d0607535daa26caf12a38da2233586bc51e79ed0b3a36170471bf5"
80+
}
81+
'
82+
```
83+
84+
Detaild block fetcher api is described [here](https://github.com/mlabs-haskell/ogmios-datum-cache/tree/9e8bcbe00f88715afdb202cd9654ec2adc72c09e#control-api).
85+
5586
### Optional: Mint your own NFTs
5687

5788
This process will be simplified in the future.
@@ -121,36 +152,6 @@ $ cd ../cardano-transaction-lib
121152
$ # Replace value of "mintingPolicy1" in seabug_contracts/MintingPolicy.js with policy noted from BPI
122153
```
123154

124-
### Start services
125-
126-
```shell
127-
$ ./buildFrontend.sh
128-
$ arion up
129-
```
130-
131-
please note that `arion up` will require a full cardano node to sync, which can take some time. At time of writing (April, 2022), the current tip is at slot 56000000 and counting.
132-
133-
Once the chain is synced, you should be able to view the dApp UI from `localhost:8080`
134-
135-
Ensure that Nami is set to Testnet, that you have some Test Ada, and that you've set collateral in Nami.
136-
137-
138-
### Start ogmios-datum-cache block fetcher
139-
140-
```shell
141-
$ curl --location --request POST 'localhost:9999/control/fetch_blocks' -i\
142-
--header 'Content-Type: application/json' \
143-
--data-raw '
144-
{
145-
"slot": 44366242,
146-
"id": "d2a4249fe3d0607535daa26caf12a38da2233586bc51e79ed0b3a36170471bf5"
147-
}
148-
'
149-
```
150-
151-
Detailed block fetcher api is described [here](https://github.com/mlabs-haskell/ogmios-datum-cache/tree/9e8bcbe00f88715afdb202cd9654ec2adc72c09e#control-api).
152-
153-
154155
## Components
155156

156157
### `nft-marketplace`

0 commit comments

Comments
 (0)