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 6f195d395e fixed 2 years ago
docs fixed bug 3 years ago
patches add 2 years ago
public 修改实现 2 years ago
script add 2 years ago
source fixed 2 years ago
template fixed 2 years ago
types 修改实现 2 years ago
.dockerignore Dockerfile 2 years ago
.editorconfig add some thing 2 years ago
.env.development fixed bug 3 years ago
.env.production fixed bug 3 years ago
.gitignore fixed bug 3 years ago
.prettierrc format 2 years ago
Dockerfile fixed 部署 2 years ago
package-lock.json fuck 3 years ago
package.json fixed 部署 2 years ago
pnpm-lock.yaml fixed 部署 2 years ago
readme.md fixed 部署 2 years ago
route.txt fixed 2 years ago
tsconfig.json fixed 部署 2 years 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 exec -it 容器ID /bin/bash

清除

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