Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qihexiang committed Jan 12, 2022
0 parents commit 38a3290
Show file tree
Hide file tree
Showing 61 changed files with 8,606 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
# public
*.js
*.log
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 胜古朝阳 Web端

## 开发方法

### 准备工作

安装以下软件:

- Node.js >= 12
- 对应版本的NPM
- 从NPM上全局安装的Yarn(可选)

### 克隆仓库

```bash
git clone https://gitee.com/qihexiang/sgcy-web.git
cd sgcy-web
```

### 安装依赖和启动

```bash
# 安装了Yarn
yarn && yarn dev
# 未安装Yarn
npm install && npm run dev
```

### 访问页面

浏览器访问<http://localhost:3000>

## 发布方式

创建生产包:`yarn build`,生成的静态文件存放于`dist`目录下。
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>胜古朝阳</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 38a3290

Please sign in to comment.