There are 5 services that comprise create-patchwork applications:
Ponder (event indexing, API)
Postgres (event persistence)
Anvil
www (React frontend)
Dozzle (container logs)
If you have Docker installed, the easiest way to run these all is using the pnpm pnpm pdk localDev command:
Copy
pnpm pdk dev up
This command will start all containers, deploy contracts to your preferred network (automatically if you are using Anvil), configure environment variables, and rerun any generators that need it because of downstream changes.To stop development, do:
Copy
pnpm pdk dev down
If you’d like to switch networks, you can run:
Copy
pnpm pdk network switch <network>
You can see a list of supported networks by running:
Copy
pnpm pdk network list
You can also manually rerun any generator by running them with pnpm pdk.From your created project root, run pnpm pdk to see a list of all available commands.