Skip to content

Project built with Hardhat and Next.js to show how to connect and interact with blockchain contracts on Polygon Network via frontend web app

Notifications You must be signed in to change notification settings

mosquida/simple-fullstack-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Simple FullStack DApp

This repository aims to show how to connect and interact with blockchain contracts on Polygon Network with javascript frontend web app.

dapp-contracts

This project demonstrates the basic use of Hardhat. It contains a Message Contract with get and set function, a test file for it as well as a deployment script for it,

Contract ABI's are located inside artifacts folders after compiling the contracts for frontend web app dependency.

Try running some of the following tasks:

// Compile solidty contracts, produces an artifacts
npx hardhat compile

// Run contracts test files
npx hardhat test

// Start local blockchain
npx hardhat node

// Deploy the contracts on local blockchain
npx hardhat run scripts/deploy.js --network localhost

// Deploy the contracts on mumbai(polygon testnet) blockchain
npx hardhat run scripts/deploy.js --network mumbai

Deployed Contract Address

View Message Contract at Polygonscan explorer: 0xf7AC055eA1628c6ACb34753437d364265A017a98

dapp-webapp

This project built with Next.js for frontend consuming and interacting with the functions at the deployed smart contracts on blockchain

To run the development server:

npm run dev

To build the app:

npm run build

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

Deployed App URL

Visit https://dapp-web.onrender.com to test tha app in production

About

Project built with Hardhat and Next.js to show how to connect and interact with blockchain contracts on Polygon Network via frontend web app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published