A Fastify template having:
- TypeScript
- Multiple ESLint & Prettier plugins installed
Important
This template requires Node.js version 20.19+. Please upgrade if your package manager warns about it.
该模板需要 20.19+ 版本的 Node.js。当你的包管理器发出警告时,请注意升级你的 Node.js 版本。
Tip
This code repository may occasionally update its dependency versions. If the dependency versions in the latest code do not meet your expectations, please go to Tags section to download a previous version of this template. I will display the dependencies used in each Tag, please choose the one you need.
这个代码仓库可能会不定期更新其依赖包的版本。如果最新代码中依赖的版本不符合你的期望,请移步Tags下载之前的模板。每个Tag中使用的依赖都会展示在Tag详情中,请选择你需要的版本。
Tip
The fastest way to use this template is to click the “Use this template” button on the top right of this repository. It will help you create a new repository quickly, and you can make any modifications to your own repository. If you still want to download this template separately, please continue reading.
使用该模板的最快方式,就是点击本仓库右上角的“使用该模板”按扭。这帮助你使用该模板迅速创建一个新的仓库,然后你可以对自己的仓库进行任何修改。如果你仍然希望单独下载此模板,可继续往下读。
If you need a copy of this repository. You can download a copy as zip but tiged is recommended.
After you installed tiged, please excute the following commands:
$ cd path-to-save-your-project
$ tiged royrao2333/template-fastify-typescript-monorepo your-project-nameAfter getting a copy of this repository, you can use your package manager to install dependecies:
$ cd path-to-your-project
$ pnpm install
# npm install
# yarn installLet's run!
$ pnpm run api:dev
# npm run api:dev
# yarn run api:devWe've already implemented some recommended configurations in
eslint.config.mjs,prettier.config.mjs. Feel free to edit them if you have your own preferences.
Feel free to dive in! Open an issue or submit PRs.
