fastify + TypeORM + mercurius + nexus
复制 .env.example
到 .env
,config.example.yaml
到 config.yaml
,根据自己的开发环境设置相关配置。 环境变量(及.env
文件)会覆盖 config.yaml
中的设置。
如果你是在本机启动了 dev-env 中的 docker-compose,可以直接使用默认设置。
yarn start
在文件修改后会自动重启。
jest 对于 esm 的支持不好,所以使用 vitest 作为测试框架。
运行测试需要 mysql。