This repository contains a slightly opionated way to use Fastify. All the code is commented and if you follow the guide below it should build apon your understanding on how Fastify works.
- Node >=16
- Docker
- Clone the repository
git clone https://github.com/Cotiss/fastify-starter.git
- Install the dependencies
npm install
- Run the dependent services with Docker
npm run up
- Start the application
npm run dev
- Explore the code
code .
This codebase is heavily commented to help you learn the basics. It's recommended starting in the following order:
- server.ts
- config.ts
- index.ts
After this feel free to navigate your way around the codebase.