- Locally installed Node.js (https://nodejs.org/en/download)
- Nami browser extension (https://namiwallet.io)
- Running CTL backend services (https://github.com/Plutonomicon/cardano-transaction-lib)
- Running NFT marketplace server (https://github.com/mlabs-haskell/nft-marketplace-server)
- Install the Nami wallet extension from https://namiwallet.io and complete the setup process.
- In the settings, change the network from
Mainnet
toPreview
. - Click the
Receive
button in the wallet and copy the address. - Go to https://faucet.preview.world.dev.cardano.org/basic-faucet and request
tAda
to your address. - Wait until the test Ada shows up in your wallet and then add collateral of
5 tAda
.
- Clone this repo and cd into the
nft-marketplace
directory. - Run
npm install
to install dependencies. - Update the
.env
file (instructions below). - Run
npm start
to launch the app.
- Clone the https://github.com/Plutonomicon/cardano-transaction-lib repo, switch to the
seabug-deployment
branch and follow the instructions in/seabug-deployment/npm-packages/seabug-example
. - Clone this repo and cd into the
nft-marketplace
directory. - Run
npm install
to install dependencies. - Run
npm link cardano-transaction-lib-seabug
. This will create a link in yournode_modules
directory to thecardano-transaction-lib-seabug
that you registered in step 1. - Update the
.env
file (instructions below). - Run
npm start
to launch the app.
Important: each time your run npm install
or npm ci
, you will need to run
npm link cardano-transaction-lib-seabug
again.
There are several environment variables that must be set prior to launching the app. These can be configured in the .env
file within the project root directory.
The nft-marketplace-server
base URL. Example: https://localhost:8008
The CTL server host. Example: localhost
The CTL server port. Example: 8008
Whether or not to use HTTPS for the CTL server connection. Example: false
The Ogmios host. Example: localhost
The Ogmios port. Example: 1337
Whether or not to use HTTPS for the Ogmios connection. Example: false
The Ogmios Datum Cache host. Example: localhost
The Ogmos Datum Cache port. Example: 9999
Whether or not to use HTTPS for the Ogmios Datum Cache connection. Example: false
The Cardano network ID/tag, see CIP19. Set to 0 for testnets (pre-prod, preview), and 1 for mainnet.
The Blockfrost project ID (which can be obtained by signing up at https://blockfrost.io/). Example: previewxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The base URL for IPFS requests. Example: https://cloudflare-ipfs.com/ipfs/