A tutorial of an NFT Market Place built using Near Protocol and React.js Part 2.
git clone https://github.com/kels-orien/nft-marketplace-part-2.git
near login
From market_contract
directory using CLI:
For Windows users:
/build.bat
For Mac and Linux users:
/build.sh
To create subaccount from market_contract
directory via CLI use command:
near create-account market_contract.youraccountname.testnet --masterAccount youraccountname.testnet
near deploy market_contract.youraccountname.testnet --wasmFile res/market_contract.wasm
Change the youraccountname
part of the MARKET_CONTRACT_NAME
constant in config.js
file to your own account name.
To initialize our market contract from CLI:
near call market_contract.youraccountname.testnet new '{"owner_id": "nft-contract.youraccountname.testnet"}' --accountId youraccountname.testnet
Go to root directory nft-marketplac-part-1
using CLI and install packages:
cd ..
npm install
npm start