(此篇文章的流程,就是在当前项目中创建一个功能模块的基本全流程,建表→创建tRPC路由→创建组件并使用API路由) Create categories schema添加表结构...

(此篇文章的流程,就是在当前项目中创建一个功能模块的基本全流程,建表→创建tRPC路由→创建组件并使用API路由) Create categories schema添加表结构...
transformerData Transformers[https://trpc.io/docs/server/data-transformers],序列化响应数据和输入的...
tRPC的基本概念一个用于构建全栈类型安全API的框架(端到端类型安全),让前端可以像调用本地函数一样调用后端api可替代传统的api路由,前后端共用一份类型定义tRPC中有...
ngrok在我们的项目中会使用很多工具的webhook,因此需要提供一个静态域名方便webhook调用ngrok 可以将本地运行的服务用一个公网地址暴露出来安装: brew ...
Neon Consolenew project => connect to your database => psql => connection string,将数据库ur...
Integrate ClerkClerk[https://clerk.com/] => Dashboard => create application,当前登录选项只选择了g...
Image组件 Image 组件来自 Next.js[https://nextjs.org/docs/app/api-reference/components/image],...
Environment集成工具包:bun[https://bun.sh/docs] ,获取当前安装版本bun --version, 1.2.10node.js 版本:v20....
本篇文章将要绘制一个具有动画效果的galaxy,关于galaxy的实现可以参考之前的这篇笔记 Galaxy[https://www.jianshu.com/p/3087edb...
We're going to create raging sea only by using shaders Set up Replace the mesh and repl...
What is a shader?Program written in GLSLSent to the GPUPosition each vertex of a geomet...
添加物体和灯光 Load the model, increase its scale, rotate it Load the environment map, 我们加载的是立...
Environment Mapas a backgroundas reflectionas lighting Set up Model添加model后向下移动camera就能...
A raycaster[https://threejs.org/docs/index.html?q=ray#api/zh/core/Raycaster] can cast a...
Formats - many 3D models formats, each one responding a problem Popular 3D Models Forma...
We are going to use three.js to achieve physics effects, likes bounce、friction、bouncing...
how to use three.js as a background of a classic HTML page make the camera to translate...
这篇笔记的最终实现目标,是创建一个星系,如下图: Set up Create a generateGalaxy function and call it, 我们用这个方法生成...
Particles can be used to create stars, smoke, rain, dust, fire, etc. You can have thous...
基础场景:some lights、no shadow、a Dat.GUI panel HouseFloor/** * House**/// Floorconst floor...