A zkSync + Next.js Turborepo starter kit to quickly ship L2 Web3 apps.
web
: a Next.js app with:contracts
: a Hardhat project with:- zkSync Hardhat plugins
- TypeChain
- chai/mocha for testing
generated
: for sharing smart contract artifactseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
: shared configtailwind-config
:tailwind.config.js
: shared config
Install pnpm if you don't have it already:
npm install -g pnpm
Install dependencies:
cd zksync-starter
pnpm install
Start the web app:
turbo dev
ℹ️ You can run commands in the root of the repo or in any of the apps or packages. See
turbo.json
for monorepo configuration.pnpm run
to see available commands.
Requires Docker. See https://github.com/matter-labs/local-setup for more info.
turbo node
The initial setup takes a while and should not be interrupted
turbo compile
turbo test
Edit apps/contracts/hardhat.config.ts
to set RPC URL and deployer private key.
turbo deploy
This starter kit is based on: