# 简介

本文档为开发者提供将开源跨链桥前端界面部署至本地环境的完整指南。通过本地化部署，用户可直接在自有服务器或开发环境中运行跨链交易界面，同时仍接入第三方后端服务（如节点RPC、跨链桥API等），实现以下核心价值：

### 🌟 核心优势

**安全透明**：前端代码完全开源，避免第三方托管平台潜在的代码篡改风险

**自主可控**：支持自定义UI、第三方后端服务商及链配置，灵活适配业务需求

**开发友好**：模块化设计，轻松对接多链生态（EVM/Tron/Solana等）

**零依赖风险**：即使第三方服务升级或故障，本地前端仍可快速切换备用服务商

### 🛠️ 技术栈

框架: nodeJS + Vue

链交互: Web3.js / Ethers.js

样式: SCSS + 响应式布局

构建工具: npm / yarn

### 🚀 快速开始（30秒预览）

1. **克隆仓库**

   ```
   git clone https://github.com/ethereumfair/opendex.git  
   ```
2. **安装依赖**

   ```
   cd opendex && npm install  
   ```
3. **启动本地服务**

   ```
   npm run serve  
   ```

   立即访问：`http://localhost:8080`


---

# 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://opendex-cn.etherfair.org/jian-jie.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.
