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

# Getting Started

> Running and accessing Sonamu UI

Sonamu UI is a **web-based development tool for managing Entities, Migrations, Scaffolding, and Fixtures**. You can perform tasks that were done via CLI with a more intuitive visual interface, and it also provides test result viewing and CDD contract management features.

## What is Sonamu UI?

Sonamu UI provides the following features:

| Feature               | Description                                          | CLI Equivalent     |
| --------------------- | ---------------------------------------------------- | ------------------ |
| **Entity Management** | Create, edit, delete Entities                        | `pnpm stub entity` |
| **DB Migration**      | Create and run migrations                            | `pnpm migrate`     |
| **Scaffolding**       | Auto-generate Models, tests                          | `pnpm scaffold`    |
| **Fixture**           | Manage test data                                     | `pnpm fixture`     |
| **i18n**              | Manage internationalization strings                  | Manual editing     |
| **Tasks**             | Monitor workflow execution                           | -                  |
| **Test Results**      | View test execution results                          | -                  |
| **CDD**               | Contract-Driven Development contract/spec management | -                  |

## How to Run

### Running in Development Environment

Sonamu UI is **built into the API server**. No separate command is needed.

```bash theme={null}
# Run API server
cd api
pnpm dev
```

When the API server starts, Sonamu UI is automatically served alongside it.

**Default URL**: `http://localhost:34900/sonamu-ui`

<Info>
  Sonamu UI is served at the **`/sonamu-ui` path of the API server** without a separate port.
</Info>

### Typical Development Workflow

```bash theme={null}
# Run API server (includes Sonamu UI)
cd api
pnpm dev

# Access in browser
# http://localhost:34900/sonamu-ui
```

## Interface Structure

<Frame caption="Sonamu UI Full Screen">
  <img src="https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/sonamuUI-created-entity.png?fit=max&auto=format&n=wk-O_9zBoKGthXNV&q=85&s=8a0bfe09c51843f4ca9fad863996edc5" alt="Sonamu UI Full Screen" width="2872" height="1916" data-path="images/sonamuUI-created-entity.png" />
</Frame>

Sonamu UI consists of three main areas:

### 1. Global Navigation Bar (GNB)

Located at the top of the screen for quick access to main features.

| Menu              | Function                            |
| ----------------- | ----------------------------------- |
| **Entities**      | Create and edit Entities            |
| **DB Migration**  | Manage migrations                   |
| **Scaffolding**   | Generate Model/Test code            |
| **Fixture**       | Manage test data                    |
| **i18n**          | Manage internationalization strings |
| **Tasks**         | Monitor workflow execution          |
| **Test Results**  | View test execution results         |
| **CDD**           | CDD contract/spec management        |
| **Search** (`⌘K`) | Global search                       |

### 2. Sidebar

Located on the left side, displays the item list for the currently selected menu.

* **Entities tab**: Display all Entity list
* **Migrations tab**: Migration file list
* **Bottom button**: Add new item button (e.g., New Entity)

### 3. Main Content Area

The wide area in the center where you view and edit details of selected items.

* Edit Entity properties
* Preview migrations
* Code generation options, etc.

## Keyboard Shortcuts

| Shortcut                        | Function          |
| ------------------------------- | ----------------- |
| `⌘K` (Mac) / `Ctrl+K` (Windows) | Open search modal |
| `Esc`                           | Close modal       |

## Next Steps

<CardGroup cols={2}>
  <Card title="Entity Management" icon="cube" href="/en/tools-and-cli/sonamu-ui/entity-management">
    Create and edit Entities
  </Card>

  <Card title="Scaffolding" icon="wand-magic-sparkles" href="/en/tools-and-cli/sonamu-ui/scaffolding-tab">
    Auto-generate code
  </Card>

  <Card title="Tasks" icon="list-check" href="/en/tools-and-cli/sonamu-ui/tasks-tab">
    Monitor workflows
  </Card>
</CardGroup>
