Skip to content

zh Getting Started

github-actions[bot] edited this page Jul 6, 2026 · 2 revisions

← README · Wiki · English

简介 · 功能特性 · 技术栈 · 快速开始 · 部署 · 项目结构 · 系统架构 · 小部件 · API · 数据库 · 设置 · 安全 · 配置 · 路线 · License

快速开始

环境要求

本地开发

git clone https://github.com/HaradaKashiwa/ternssh.git
cd ternssh
npm install

# 应用 D1 迁移(首次必须)
npm run db:migrate:local

# 方式 A:前后端分离(热更新)
npm run dev:server   # Workers + 静态资源,默认 http://localhost:8787
npm run dev:web      # Vite 开发服务器,代理 /api

# 方式 B:接近生产的集成预览
npm run build
npm run dev:server

Clone this wiki locally