Important
This Turborepo includes the following packages/apps:
ponder
a Ponder application for rapid API development on top of any EVM smart contractweb
: a Next.js app for the web application
packages/config
@eidolonkit/contracts
: a Foundry project for smart contract development@eidolonkit/ui
: a component library for use in react based applications throughout the monorepo
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- Foundry for smart contract development
- Soldeer for package management for Foundry projects
- Viem for connection to Ethereum through type-safe modules
- Wagmi for connection to Ethereum through a collection of type safe react hooks
- RainbowKit for wallet connection
- Ponder for rapid API development on top of any EVM smart contract
- Tanstack Query for asynchronous state management
- Vocs for documentation site generation
- Tailwind for styling
- Park UI for scaffolding the ui component library package
- React Testing Library for testing react components
- Biome for code linting and formatting
- Knip for finding unused files, dependencies and exports
- Github Actions for CI/CD
- Husky, Commitlint, and Lint-Staged for commit message and staged file linting
- Renovate for keeping all dependencies up to date
Note
Prior to running any of the commands from Build
or Develop
, it is required to install all necessary dependencies and add appropriate environment variables.
Tip
With the current configuration, you will have to have an encrypted private key (even for local development with anvil) using the generated JSON keystores from cast wallet import --interactive
. More details can be found here.
bun install && bun contracts:install
- First, create a
.env
file in thepackages/contracts
directory and add the appropriate environment variables.
cp ./packages/contracts/.env.template ./packages/contracts/.env
- Next, create a
.env.local
file in theapps/web
directory and add the appropriate environment variables.
cp ./apps/web/.env.local.template ./apps/web/.env.local
To build all apps and packages, run the following command:
bun run build
To develop all apps and packages, do the following:
- In one terminal window, run:
bun anvil
- In another terminal window, run:
bun contracts:deploy
- Spin up remaining development servers:
bun dev
Tip
If you do not want the dev
command to include spinning up the docs servers, you can update the dev
script in the root package.json
to turbo run dev
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:
bunx 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:
bunx turbo link