You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
npmrun 160e42914e add 11 months ago
data add 11 months ago
docs add 11 months ago
patches update 1 year ago
public add 11 months ago
script add 1 year ago
source add 11 months ago
template add 11 months ago
types add 1 year ago
.dockerignore Dockerfile 1 year ago
.editorconfig add some thing 1 year ago
.env.development 增加部署配置 1 year ago
.env.production 增加部署配置 1 year ago
.gitignore add 1 year ago
.prettierrc format 1 year ago
Dockerfile docker 11 months ago
docker-compose.yml docker 11 months ago
package-lock.json fuck 2 years ago
package.json add 11 months ago
pnpm-lock.yaml add 11 months ago
readme.md add 1 year ago
route.txt add 11 months ago
tsconfig.json add 11 months ago

readme.md

可参考项目

增加测试库

  • @hapi/code
  • @hapi/lab 暂时不太清楚怎么结合使用

对于验证库的处理方式参考

https://docs4dev.com/questions/345443 https://github.com/nelsonic/hapi-validation-question

缓存

https://github.com/hapijs/catbox-redis/blob/master/test/cluster.js https://hapi.dev/module/catbox/api/?v=12.1.0

https://juejin.cn/post/7067093432737398792

https://blog.csdn.net/qq_31155349/article/details/109013323 https://blog.csdn.net/tiger1334/article/details/93468736

docker build -t hapi-website -f ./Dockerfile ./ docker run -itd --name website -p 8899:3388 hapi-website /bin/bash docker run -itd --name website -p 8899:3388 hapi-website 去除/bin/bash看会运行么 docker exec -it 容器ID /bin/bash

清除

docker stop 容器ID docker container prune docker image rm 镜像名 docker image ls -a docker container ls -a

https://blog.csdn.net/LIFENG0402/article/details/117930091

使用事务

https://sequelize.org/docs/v6/other-topics/transactions/#:~:text=The%20sequelize.transaction%20method%20accepts%20options.%20For%20unmanaged%20transactions%2C,%28options%29.%20For%20managed%20transactions%2C%20use%20sequelize.transaction%20%28options%2C%20callback%29.

docker-compose up -d docker-compose down