sarafa-svc-fastify
v1.0.3
Published
## Overview
Downloads
23
Readme
Fastify Service
Overview
This repository contains a Fastify-based service built on sarafa-svc-base
, offering a production-ready boilerplate for API development with integrated plugins like CORS, Under Pressure, Swagger, and Static file serving.
Usage Starting the Server typescript Copy code import FastifyService from './path-to-fastify-service-file';
const handler = { opts: { logger: true, trustProxy: true, disableRequestLogging: false, port: 3000 } };
const fastifyService = new FastifyService(handler); fastifyService.start((err) => { if (err) { console.error('Error starting service:', err); } else { console.log('Service started successfully.'); } });