Skip to content
/ web3 Public

A project to learn more about the Web3 development ecosystem.

Notifications You must be signed in to change notification settings

j04n-f/web3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web3

A project to learn more about the Web3 development ecosystem. The project has two packages: Hardhat & NextJS.

Hardhat

The Hardhat project contains a Voting Contract sample which allows the Users to vote for an Option. It uses Chai to test the Contract, ESLint to lint the TS code, Solhint to lint Solidity code and Biome to format the code.

NextJS

The NextJS project contains the code to unlock the Ganache generated accounts, send a transaction to another account and deploy a Contract. It uses Jest and Playwright to test the web page, ESLint to lint the TS code and Biome to format the code.



animated

Development

Install pre-commit:

$ python -m venv venv
$ venv/bib/activate
$ pip install pre-commit
$ pre-commit install

Packages

Hardhat

Use the Hardhat package directory:

$ cd package/hardhat

Installation

$ bun install

Test

$ bun run hardhat test

Compile

$ bun run hardhat compile

NextJS

Use the Hardhat package directory:

$ cd package/nextjs

Installation

$ bun install

Execution

Run Ganache + Server:

$ docker compose up ganache
$ bun run dev
# Or
$ docker compose up --build

Test

Unit

$ docker compose up ganache
$ bun run jest

End-to-End

$ bun run playwright install
$ docker compose up --build
$ bun run playwright test

About

A project to learn more about the Web3 development ecosystem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published