Ergonomic, chaining-based Typescript framework for quick API development for Fastify
Installation
> pnpm add @t3ned/channel
Usage
// index.tsimport{Application}from"@t3ned/channel";importfastifyfrom"fastify";constserver=fastify();constapp=newApplication(server).setRouteDirPath(__dirname,"api").setEnvFilePath(process.cwd(),".env").setDevelopmentEnvName("DEVELOPMENT").setRoutePrefix("/api").setDefaultVersionPrefix("v").setDefaultVersion(1);app.listen(3000,"0.0.0.0").then(()=>console.log(`Listening on port ${app.port}`)).catch((error)=>console.error(error));