A tutorial of an NFT Market Place built using Near Protocol and React.js.
Near Protocol uses rust programming language for it's smart contracts. We are going to start with a rust contract template.
git clone https://github.com/kels-orien/nft-marketplace-part-1.git
near login
From nft-contract
directory using CLI:
For Windows users:
/build.bat
For Mac and Linux users:
/build.sh
To create subaccount from nft-contract
directory via CLI use command:
near create-account nft-contract.youraccountname.testnet --masterAccount youraccountname.testnet
near deploy --accountId nft-contract.youraccountname.testnet --wasmFile res/nft_contract.wasm
Change the youraccountName
part of the contractName
constant in config.js
file to your own account name.
Go to root directory nft-marketplac-part-1
using CLI and install packages:
cd ..
npm install
npm start