sciencefund / sf-next-dapp

science fund home page with nextjs frontend and hardhat backend.
1 stars 0 forks source link

Science Fund Homepage with SFT

NextJS Frontend

Get Started

Go to your root directory and install dependencies

npm i

and run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Edit the home page

You can start editing the homepage page by modifying pages/index.js. The page auto-updates as you edit the file.

HardHat Backend

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts.

Try running some of the following tasks:

npx hardhat help

deploy to local network

cd sf-next-dapp
npx hardhat clean
TS_NODE_TRANSPILE_ONLY=1 npx hardhat compile
npx hardhat node
npx hardhat deploy --network localhost

Running test

//TODO:more tests are needed

npx hardhat test

Interacting with the contract from browser on local hardhat nextwork

NFT metadata

metadata standard

[EIP-1155] (https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md#erc-1155-metadata-uri-json-schema)

deploy metadata file on arweave

follow the instructions here

this prototype is deployed https://science-fund.herokuapp.com/ with contracts on Rinkeby