Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

0xZeroLabs/zero-demo

Repository files navigation

ZERO Labs Mono

Due to the sun-setting of Passport Protocol by 0xPass, the prototype here might not run as expected!

Welcome to the base of all of our code. Feel free to look around.

What's inside?

A Turborepo which includes the following packages/apps:

Apps and Packages

  • @repo/landing: a Nuxt.js app, the landing page
  • @repo/app: another Nuxt.js app, the main app
  • @repo/contracts: a Solidity and Hardhat project
  • @repo/ui: a stub Vue component library shared by both the applications
  • @repo/eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier)

Each package/app is 100% TypeScript.

Utilities

This Turborepo has some additional tools already setup:

Build

To build all apps and packages, run the following command:

cd zero-mono
pnpm build

Develop

To develop all apps and packages, run the following command:

cd zero-mono
pnpm dev

Remote Caching

Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

cd zero-mono
npx turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:

npx turbo link

Useful Links

Learn more about the power of Turborepo: