> ## Documentation Index
> Fetch the complete documentation index at: https://docs.patchwork.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Local development

There are 5 services that comprise create-patchwork applications:

1. **Ponder** (event indexing, API)
2. **Postgres** (event persistence)
3. **Anvil**
4. **www** (React frontend)
5. **Dozzle** (container logs)

If you have Docker installed, the easiest way to run these all is using the `pnpm pnpm pdk localDev` command:

```shell theme={null}
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:

```shell theme={null}
pnpm pdk dev down
```

If you’d like to switch networks, you can run:

```shell theme={null}
pnpm pdk network switch <network>
```

You can see a list of supported networks by running:

```shell theme={null}
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.
