---
description: Browser DevTools and local development access — dev server, credentials, viewport rules
globs: 
alwaysApply: true
---

# DevTools & Local Development

## Browser Configuration

When opening URLs in DevTools (Chrome MCP tools):
- **Resize the browser** to at least **1900px width** before taking screenshots
- Use `mcp_chrome-devtoo_resize_page` with `width: 1900` and `height: 1200` after navigating

## Local Login

- **URL:** `http://localhost:8080/wp-admin`
- **Username:** `admin`
- **Password:** `admin`

When prompted to log in:
1. Fill the username field with `admin`
2. Fill the password field with `admin`
3. Click "Log In"
4. Wait for redirect to complete

## WooCommerce Settings Access

- **Gateway settings:** `http://localhost:8080/wp-admin/admin.php?page=wc-settings&tab=checkout&section=glitch`
- **Orders list:** `http://localhost:8080/wp-admin/edit.php?post_type=shop_order`

## Checkout Testing

- **Shop page:** `http://localhost:8080/shop`
- **Cart:** `http://localhost:8080/cart`
- **Checkout:** `http://localhost:8080/checkout`

## Docker

- **Containers:** WordPress (`glitch-wordpress`) + MySQL (`glitch-mysql`)
- **WordPress port:** `8080`
- **MySQL port:** `3306`
- **Compose file:** `docker-compose.yml` at project root

```bash
docker compose up -d       # Start containers
docker compose down        # Stop containers
docker compose logs -f     # Follow logs
```
