# cupboard
## 一、开发规范
### 1.命名需遵从以下原则
- 变量名驼峰规范
- 常量首字母大写
- 禁止缩写 详细一些
- 数组一律 s 结尾 users buckets
- 函数命名规范 动词开头 can get set load send handle filter fetch
- 组件的文件夹为 小写字母+下划线 组件名为驼峰 首字母大写
### 2.框架
- nuxt
- ant-design
- less
- typescript
- 使用 eslint 和 prettier .vscode
- 使用 yarn 代替 npm
### 3.git 规范
- 使用前缀 fix: bug fixed
(注意,是英文的冒号,后面跟一个英文的空格)
> feat: 新功能(feature)
> fix: 修补 bug
> docs: 文档(documentation)
> style: 格式(不影响代码运行的变动)
> refactor: 重构(即不是新增功能,也不是修改 bug 的代码变动)
> test: 增加测试
> chore: 构建过程或辅助工具的变动
- 使用 pull request
- 使用 dev 分支开发
### 4.全局组件
- 注册到全局的组件一律写到 ~/components/base 目录下
- 在~/components/base/index.js 中注册组件
### 5.文件创建规范
- ~/pages 目录下创建页面文件夹+index.ts
- 页面的所有组件编写在~/components 目录下,并以页面的文件夹命名
- 公用混合方法文件写在~/plugins/mixins 目录下
## 二、产品介绍
### 1.产品树
- room 房间
- skirting 踢脚线
- obstacle 障碍物
- cupboard 柜子的整体设置
- skirting 踢脚线设置
- topEdgeSeal 顶部封边
- cabinet 柜体
- plate 板材
- plateTexture 板材材质
- plateGroup 板材组
- plate 板材
- plateTexture 板材材质
- door 门
- plate 板材
- plateTexture 板材材质
## 测试服
- ssh [email protected]
- 124.223.31.68
### 1.系统配置
- 操作系统 Ubuntu Server 20.04 LTS 64bit
- sudo adduser cupboard
- pwd: qwe123123.
- chmod u+w /etc/sudoers sudoers 文件添加写权限
- sudo vim /etc/sudoers 添加 cupboard 的 sudo 权限
- chmod u-w /etc/sudoers 销毁写权限
- sudo ufw enable 启动防火墙
- sudo ufw allow '22/tcp' 22 端口开放
### 2.配置免密登录
- vim .ssh/authorized_keys
### 3.安装必要软件
- sudo apt install mysql-server // 8.x 版本的
sudo cat /etc/mysql/debian.cnf // 查看 mysql 生成的随机密码
```
# 修改root用户的的密码
> mysql -u debian-sys-maint -p # 登录mysql
> show databases;
> use mysql;
> update user set authentication_string=PASSWORD("自定义密码") where user='root';
> update user set plugin="mysql_native_password";
> flush privileges;
> quit;
// mysql 8.0支持的协议规则
> ALTER USER 'cupboard'@'%' IDENTIFIED WITH mysql_native_password BY 'qwe123123';
```
- 修改完密码,需要重启 mysql
sudo /etc/init.d/mysql restart;
- 安装 nginx
```
sudo apt install nginx
# 验证是否安装并启动
sudo systemctl status nginx
# 开放端口'Nginx Full'包含 80 和 443
sudo ufw allow 'Nginx Full'
# 验证端口是否开放
sudo ufw status
# 重启nginx
sudo systemctl restart nginx
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
本项目后端采用 midway3.0,后台采用 nuxt2.x,小程序采用 uniapp 实现的一套跑腿下单接单系统 (339个子文件)
pages.json.bak 4KB
nuxt.config.js.bak 3KB
nginx.conf.bak 2KB
config.local.ts.bak 2KB
config.env.ts.bak 2KB
config.prod.ts.bak 2KB
config.json.bak 488B
constant.js.bak 295B
iconfont.css 3KB
font.css 2KB
.editorconfig 207B
.editorconfig 171B
.gitignore 1KB
.gitignore 458B
.gitignore 193B
.gitignore 184B
index.html 765B
favicon.ico 8KB
city.js 36KB
buildconfig.js 8KB
request.js 6KB
home.js 3KB
api.js 2KB
froala.js 1KB
index.js 1KB
date.js 813B
main.js 788B
.prettierrc.js 742B
ecosystem.config.js 451B
init.js 348B
index.js 304B
.eslintrc.js 294B
shell.js 278B
jest.config.js 218B
antd-ui.js 211B
profile.js 187B
server.js 176B
bootstrap.js 71B
.prettierrc.js 59B
jest.setup.js 24B
manifest.json 3KB
package.json 2KB
package.json 2KB
package.json 869B
tsconfig.json 627B
tsconfig.json 533B
launch.json 504B
.eslintrc.json 156B
common.less 3KB
theme.less 156B
LICENSE 1KB
bt-build.md 4KB
README.md 3KB
op.md 3KB
dev.md 3KB
buid-server.md 3KB
hello.md 873B
README.zh-CN.md 414B
README.md 400B
README.md 87B
README.md 87B
readme.md 82B
README.MD 77B
README.md 77B
shortcut-key.md 25B
login.png 111KB
empty-design.png 55KB
sqbanner.png 21KB
logo.png 4KB
uni.scss 113B
init.sh 2KB
order.service.ts 26KB
city.ts 18KB
order.controller.ts 15KB
remoteData.ts 11KB
analysis.controller.ts 9KB
subscribeMessage.service.ts 8KB
admin.controller.ts 8KB
api.ts 7KB
wx.service.ts 7KB
config.controller.ts 6KB
map.service.ts 6KB
index.ts 6KB
coupon.service.ts 5KB
rider.controller.ts 5KB
wxAnalysis.controller.ts 5KB
wxapp.service.ts 4KB
orders.entity.ts 4KB
config.dto.ts 4KB
citys.controller.ts 4KB
order.controller.ts 4KB
wxapp.controller.ts 4KB
agent.controller.ts 4KB
user.controller.ts 4KB
rider.controller.ts 4KB
user.service.ts 3KB
userCoupon.controller.ts 3KB
admin.service.ts 3KB
sms.service.ts 3KB
corwx.service.ts 3KB
共 339 条
- 1
- 2
- 3
- 4
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6723
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功