An opiniated template for building REST APIs using Fastify and Typescript, complete with fancy scripts, integration tests and 100% code coverage.
It includes:
fastify
for making your server lightning fast and resource efficient.typescript
+esm
for writing code (compiles to esm for Node 18).tsup
+tsx
for blazing fast builds.ava
+c8
for testing and coverage.xo
+prettier
for linting and formatting.pnpm
for fast and efficient package management.- a contributing guide, changelog, license file and readme.
To use this template, degit
it:
$ mkdir <project-name>
$ pnpx degit gamemaker1/fastify-template
$ pnpm install
Then replace the package name in the manifest (package.json
), the changelog,
the contributing guide, and the readme (including the badges, if you keep
them!), and get coding 🚀
You can use this template for any project! The license.md
file in this
repository IS NOT the license for this template - it is part of the template,
and you can change it as you wish.