codex-storage / codex-marketplace-ui

Codex marketplace UI allowing buy and sell operations in the Codex decentralized storage network
https://app.codex.storage
Apache License 2.0
0 stars 0 forks source link

Check the marketplace availability #29

Open 2-towns opened 1 month ago

2-towns commented 1 month ago

The Codex node can be run without the marketplace enabled.

In this case, we should provide an indicator to inform the user that in order to create storage requests or availabilities, they need to enable the marketplace on the client node first.

CC @veaceslavdoina

veaceslavdoina commented 1 month ago

Request

curl http://localhost:8080/api/codex/v1/storage/purchases

Marketplace enabled

Code: 200
Body: []

Marketplace disabled

Code: 503
Body: Persistence is not enabled
2-towns commented 4 weeks ago

Blocked by https://github.com/codex-storage/nim-codex/pull/942

2-towns commented 3 weeks ago

@veaceslavdoina on https://discord.com/channels/895609329053474826/1289188030795485327/1289196089005834294, you mentioned an indicator for Storage Provider. Can you explain if there is a relation between the storage provider and the marketplace and how to detect a connection with it ? Fetching the port 8091 ?

2-towns commented 2 weeks ago

@veaceslavdoina on https://discord.com/channels/895609329053474826/1289188030795485327/1289196089005834294, you mentioned an indicator for Storage Provider. Can you explain if there is a relation between the storage provider and the marketplace and how to detect a connection with it ? Fetching the port 8091 ?

@veaceslavdoina ?

veaceslavdoina commented 2 weeks ago

My initial question was to show in which mode we are running Codex. Per our documentation we can run Codex in three modes

In all the cases, we have same API, Transport and Discovery ports. But I'm not sure if we can detect via API if prover is enabled in the configuration.

Let's ask around :)