This is template for Fastify with TypeScript with the following features:
- Handle CORS with
@fastify/cors - Handle api versioning
- Configure swagger (i.e.
@fastify/swaggerand@fastify/swagger-ui) - Configure
pino-prettyfor cool log lines - Sample prehandler
- Sample endpoint
- Install dependencies
npm i - Build the app
npm run build - Run server
npm run dev - Open swagger in the browser http://localhost:8080/api/v1 💥
- Start add your endpoints 🚀
- Have fun 🎉