# 2. Sao chép Count DApp

## 1) Sao chép kho lưu trữ Count DApp <a href="#id-1-clone-count-dapp-repository" id="id-1-clone-count-dapp-repository"></a>

```
$ git clone https://github.com/klaytn/countbapp
```

## 2) Cài đặt & Chạy Count DApp <a href="#id-2-install-run-count-dapp" id="id-2-install-run-count-dapp"></a>

Gói bạn vừa sao chép đã sẵn sàng khởi chạy mà không cần sửa đổi gì.

Hợp đồng mẫu đã được triển khai cho testnet Baobab và ABI hợp đồng đã bao gồm trong gói của chúng tôi.\
Mã giao diện của Count DApp ban đầu được định cấu hình để kết nối với hợp đồng thông minh trên testnet Baobab.

Nếu bạn muốn chạy ứng dụng ngay lập tức và xem ứng dụng hoạt động, hãy nhập bên dưới.

> Bạn NÊN tuân thủ môi trường thử nghiệm được đề cập ở trang đầu tiên.

```
$ npm install
$ npm run local
```

⚠ Vui lòng kiểm tra quyền truy cập vào tập tin và thư mục nếu không thành công. Nếu bạn gặp lỗi '[Error: EACCES: permission denied](https://stackoverflow.com/questions/38323880/error-eacces-permission-denied)', lệnh `sudo chmod -R 755 /yourProjectDirectoryName` có thể hữu ích với bạn.

Ứng dụng sẽ bật lên ngay lập tức!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://archive-vn.docs.klaytn.foundation/content/dapp/tutorials/count-dapp/2.-clone-count-dapp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
