mirror of
https://github.com/wangdage12/Snap.Server.Web.git
synced 2026-02-18 02:42:14 +08:00
Update README with project details and setup instructions
Added project description, deployment instructions, and commands for starting the development server and building static files.
This commit is contained in:
30
README.md
30
README.md
@@ -1,7 +1,31 @@
|
||||
# Snap.Hutao服务器管理后台
|
||||
|
||||
还没写完,写完后使用
|
||||
该项目用于管理Snap.Hutao项目的服务器的后台系统,提供官网页面和用户、公告管理等功能。
|
||||
|
||||
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
||||
## 部署
|
||||
|
||||
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
||||
确保你已经安装了Node.js和npm。
|
||||
|
||||
克隆仓库到本地,在项目根目录下运行以下命令安装依赖:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
**编辑`.env.x`中的VITE_API_BASE_URL变量值为你的API地址,环境变量文件名中的`x`为开发环境(development)或者生产环境(production)**
|
||||
|
||||
### 启动开发服务器
|
||||
|
||||
运行以下命令启动开发服务器:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
### 构建静态文件
|
||||
|
||||
运行以下命令构建生产环境的静态文件:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user