This template should help you start developing using Vue and TypeScript in Farm.
Install the dependencies:
pnpm installStart the dev server:
pnpm startBuild the app for production:
pnpm buildPreview the Production build product:
pnpm preview- 安装依赖,随便用啥包管理器 QAQ
- 启动后端,一定要在
35271端口,这个端口写在farm.config.ts里面惹 - 启动前端,用比如
pnpm dev的命令启动前端,同样可以用其他包管理器 - 测试 OAuth 流程可以用 OpenID Connect Playground,注意这里需要一个公网可以访问的服务,可以用 cf tunnel 啥的
- 安装依赖,随便用啥包管理器 QAQ
- 构建前端,使用类似
pnpm build的命令,生成的内容在dist下面 - 启动后端
- 使用类似
nginx的服务,dist目录作为静态内容提供,/api代理到后端,没有匹配的urlroute 到index.html