# init-design
**Repository Path**: yozora331/init-design
## Basic Information
- **Project Name**: init-design
- **Description**: 后台项目初始创建
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2018-12-10
- **Last Updated**: 2021-09-25
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
English | [简体中文](./README.zh-CN.md) | [Русский](./README.ru-RU.md)
基础版
- Preview: http://preview.pro.ant.design
- Home Page: http://pro.ant.design
- Documentation: http://pro.ant.design/docs/getting-started
- ChangeLog: http://pro.ant.design/docs/changelog
- FAQ: http://pro.ant.design/docs/faq
- Mirror Site in China: http://ant-design-pro.gitee.io
## 新建项目:
- git clone --depth=1 https://gitee.com/yozora331/init-design.git my-project(这个是你新建的文件名)
- cd my-project 进入你新建的文件
- npm install —save进入新建的文件后执行这个命令,来安装项目所需的依赖
- npm start 运行项目的命令
#### (git init 之后不要忘记删除本地仓库)
- ls -a 找到目录下.git
- rm -rf .git 删除.git
```
打包项目
npm run build
scp -r dist/ root@140.143.146.163:/root
ssh root@140.143.146.163
rm -rf 文件名
mv dist 文件名
```
## 所有网络环境、富文本、文件上传相关的配置
### 目前为止以下配置全部都写在/src/utils/global.js文件里
```
const ip = ‘xx.xx.xx.xx’;// 网络接口ip
const picIp = ‘xx.xx.xx.xx’;//文件上传路径ip
const base = '/fbLifeSystem/'; //管理系统路径
module.exports = {
requestUrl: `https://${ip}`, // 接口 ip
requestApi: '/api', // 接口 api
urlAction: `https://${picIp}/xcloud-api/service/file/upload`, // 文件上传 upload
getAction: `https://${picIp}/xcloud-api/service/file/get/`, // 文件获取 get
editorIp: ip, // 富文本跨域 ip
editorUrl: `//${ip}/api/resources/Ueditor/`, // 富文本 url
editorServerUrl: `https://${ip}/api/web/editor`, // 富文本 serverUrl
base: base //管理系统路径 url
};
```
## 组件来源
- 新闻:律甲后台
- 标签:律甲后台
- 分类:越野一族后台
- 轮播图:聚创社后台
- 敏感字符:越野一族