创建strapi项目
创建
官方
使用 strapi 最新 v4 的版本,按照官网的入门教程进行创建项目。
npx create-strapi-app@latest my-project
一直下一步即可。
使用模板项目
https://github.com/daichangxin/server.strapi_template/generate
使用 npm
我没有使用 yarn,因为在后续使用 docker 时 build 总是大概率卡住报错,偶尔一次才不会超时,应该是网络的原因,配置了.yarnrc
文件也无效,所以使用了 npm。