https://github.com/plh97/web3-campaign
learn web3 contract
https://github.com/plh97/web3-campaign
ethereum-contract netlify nextjs web3
Last synced: 7 months ago
JSON representation
learn web3 contract
- Host: GitHub
- URL: https://github.com/plh97/web3-campaign
- Owner: plh97
- Created: 2022-11-05T06:00:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T09:48:42.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T00:35:29.619Z (7 months ago)
- Topics: ethereum-contract, netlify, nextjs, web3
- Language: JavaScript
- Homepage: https://delightful-valkyrie-f13641.netlify.app/
- Size: 230 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web3 project
[](https://app.netlify.com/sites/delightful-valkyrie-f13641/deploys)
## TIP
web3 not work with next@13, pls use next@12.
## How to run
```sh
node ./ethereum/compile.js && npx rimraf .env && KEY=YOUR_KEY node ./ethereum/deploy.js >> .env && yarn dev
```## Explain
```sh
node ./ethereum/compile.js # compile solidity
npx rimraf .env # remove .env file
KEY="YOUR_KEY" node ./ethereum/deploy.js >> .env # deploy solidity to online eth chain and get the online contract address and wirte down it into .env file.
yarn dev # dev the next-reactjs web app
yarn build && yarn start # build and deploy the web app
```## Preparation
1. install MetaMask Chrome extension
2. This contract will deploy into **Sepolia network**, pls make sure you are already select Sepolia network.

3. connect this website

4. Prepare your metamask 12 word phrase
## Routers
1. / => campaigns
2. /campaigns/new => create campaign
3. /campaigns/[:address] => campaign details
4. /campaigns/0x02C54A2A5978Dc3367a8a69e0cF242E72BF44162/requests => campaign request list
5. /campaigns/0x02C54A2A5978Dc3367a8a69e0cF242E72BF44162/requests/new => create campaign request
## Screenshot
Campaigns

Campaign Details

Requests
