# saas-web **Repository Path**: imsaas/saas-web ## Basic Information - **Project Name**: saas-web - **Description**: 1 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-09 - **Last Updated**: 2025-09-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 环境准备 | 环境 | 名称版本 | 下载地址 | | -------------------- | :----------------------------------------------------------- | ------------------------------------------------------------ | | **开发工具** | VSCode | [下载](https://code.visualstudio.com/Download) | | **运行环境** | Node ≥18 (其中 20.6.0 版本不可用) | [下载](http://nodejs.cn/download) | ## 项目启动 ```bash # 克隆代码 git clone https://gitee.com/imsaas/saas-web.git # 切换目录 cd saas-web # 安装 pnpm npm install pnpm -g # 设置镜像源(可忽略) pnpm config set registry https://registry.npmmirror.com # 安装依赖 pnpm install # 启动运行 pnpm run dev ``` ## 项目部署 ```bash # 项目打包 pnpm run build # 上传文件至远程服务器 将本地打包生成的 dist 目录下的所有文件拷贝至服务器的 /usr/share/nginx/html 目录。 # nginx.cofig 配置 server { listen 80; server_name localhost; location / { root /usr/share/nginx/html; index index.html index.htm; } # 反向代理配置 location /prod-api/ { # api.youlai.tech 替换后端API地址,注意保留后面的斜杠 / proxy_pass http://api.youlai.tech/; } } ```