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

# Chạy application local

> Cách khởi động application và documentation từ scripts hiện tại.

## Application

Source hiện dùng Yarn, PostgreSQL và Prisma. Từ application repository:

Trước khi chạy, chuẩn bị cấu hình theo [Cấu hình môi trường](https://docs.taho.com.vn/engineering/environment-setup.md) và [Mẫu env](https://docs.taho.com.vn/reference/env-example.md). `DATABASE_URL` phải trỏ tới database local bạn sẽ sử dụng.

```bash theme={null}
yarn install
yarn db:up
yarn prisma:generate
yarn prisma:migrate:deploy
yarn prisma:seed
yarn dev
```

`yarn db:up` gọi Docker Compose service `postgres` từ `compose.yaml`. `yarn dev` chạy Next.js development server.

Không đưa seed credentials từ application repository vào public docs.

## Mini App và API

* [Chỉ mục Mini App](https://docs.taho.com.vn/mini-app/index.md): chức năng, quyền căn hộ và ranh giới frontend/backend.
* [Chạy Mini App local](https://docs.taho.com.vn/mini-app/local-development.md): Vite DEV, dữ liệu mẫu và bản build.
* [API / Swagger](https://docs.taho.com.vn/api-reference/index.md): hợp đồng request/response; đặc tả OpenAPI thuộc docs.

## Documentation

Từ repository chứa `docs.json`:

```bash theme={null}
npx mint dev
```

## Verification commands

Application:

```bash theme={null}
yarn test
yarn test:e2e
yarn verify
```

Documentation:

```bash theme={null}
npx mint validate
npx mint broken-links --check-anchors --check-redirects
npx mint a11y
```

Các command khác được index tại [Runbooks](https://docs.taho.com.vn/reference/runbooks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.