A personal config for Fastify.
Public files are served at localhost:3000/public/* e.g. localhost:3000/public/example.json
Routes use the folder structure to determine the route. e.g. localhost:3000/a/path
would be routes/a/path.js
Plugins are loaded automatically from the modules folder with autoloader
Templates are loaded from the views directory and use the handlebars engine
Logs are written to the logs directory and to the console
Type provider allows autocomplete for the routes, see fastify-type-provider-typebox and typebox
By using type providers, the swagger docs are automatically generated at localhost:3000/docmentation