# 必须组件
- Node.js v18+ (推荐LTS版本)
- npm v9+ 或 yarn v1.22+
- Git
# 验证安装
node -v && npm -v
git clone https://github.com/ethereumfair/opendex.git
cd opendex
npm install
# 或
yarn install
npm run serve
# 访问 http://localhost:8080
npm run build
# 生成静态文件到 /dist 目录
server {
listen 8080;
server_name localhost;
location / {
root /path/to/dist;
try_files $uri $uri/ /index.html;
}
}