Introduction
Local development
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 pdk localDev
command:
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:
If you’d like to switch networks, you can run:
You can see a list of supported networks by running:
You can also manually rerun any generator by running them with pdk
.
From your created project root, run pdk
to see a list of all available commands.