Skip to content

MrBazlow/boilerplate-fastify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick and dirty Fastify config

A personal config for Fastify.

Public folder

Public files are served at localhost:3000/public/* e.g. localhost:3000/public/example.json

Routes

Routes use the folder structure to determine the route. e.g. localhost:3000/a/path would be routes/a/path.js

Plugins

Plugins are loaded automatically from the modules folder with autoloader

Templates

Templates are loaded from the views directory and use the handlebars engine

Logs

Logs are written to the logs directory and to the console

Type provider

Type provider allows autocomplete for the routes, see fastify-type-provider-typebox and typebox

Swagger

By using type providers, the swagger docs are automatically generated at localhost:3000/docmentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published