yishuolin / dapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The TEXT

The TEXT is a collection of 1000 NFTs representing 1000 text. This repository includes the frontend and a smart contract that allows you to mint and interact with the NFTs. (Final project for NTU Decentralized Applications Design and Practice 2022, Demo)

image

Getting Started

  1. Install the dependencies
npm install
  1. Run Hardhat Network
npx hardhat node
  1. Deploy the contract
npx hardhat run .\scripts\deploy.js --network localhost
  1. Set up the backend url as an environment variable
mkdir .env.local
echo "BACKEND_BASE_URL=YOUR_BACKEND_URL" > .env.local
  1. Start the dev server
npm run dev

Open the browser and go to http://localhost:10922/ to see the UI.

Acknoledgements

The 3D model is based on Spline's library and the UI design is highly inspired by Trisha Lim's post.

About


Languages

Language:JavaScript 83.5%Language:Solidity 9.6%Language:CSS 6.3%Language:Shell 0.6%