khank8476 / nft-marketplace-part-1

A tutorial of an NFT Market Place Built with Near Protocol and React.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nft-marketplace-part-1

A tutorial of an NFT Market Place built using Near Protocol and React.js.

Preview

alt-text

Prerequisites

Getting Started

Near Protocol uses rust programming language for it's smart contracts. We are going to start with a rust contract template.

To run this app locally, follow below steps:

Clone using command line interface:
git clone https://github.com/kels-orien/nft-marketplace-part-1.git
Create wallet testnet account

open wallet testnet account

From the nft-contract folder/directory using command CLI, login to near wallet account

near login

Build the contract

From nft-contract directory using CLI:

For Windows users:

/build.bat

For Mac and Linux users:

/build.sh
Create a subaccount

To create subaccount from nft-contract directory via CLI use command:

near create-account nft-contract.youraccountname.testnet --masterAccount youraccountname.testnet

Deploy the contract
near deploy --accountId nft-contract.youraccountname.testnet --wasmFile res/nft_contract.wasm

Edit contract name

Change the youraccountName part of the contractName constant in config.js file to your own account name.

Install packages for frontend

Go to root directory nft-marketplac-part-1 using CLI and install packages:

cd ..
npm install

Launch frontend
npm start

About

A tutorial of an NFT Market Place Built with Near Protocol and React.js

License:MIT License


Languages

Language:Rust 70.3%Language:JavaScript 16.2%Language:CSS 12.7%Language:HTML 0.4%Language:Shell 0.3%Language:Batchfile 0.1%