Feature: Fastify Implementation (#274)

Co-authored-by: Aman Varshney <amanvarshney.work@gmail.com>
This commit is contained in:
Niloy
2025-05-22 17:32:32 +02:00
committed by GitHub
parent 17a7386071
commit b9dae19ce5
14 changed files with 243 additions and 2 deletions

View File

@@ -42,6 +42,12 @@ export async function setupBackendDependencies(
dependencies.push("express", "cors");
devDependencies.push("@types/express", "@types/cors");
if (runtime === "node") {
devDependencies.push("tsx", "@types/node");
}
} else if (framework === "fastify") {
dependencies.push("fastify", "@fastify/cors");
if (runtime === "node") {
devDependencies.push("tsx", "@types/node");
}

View File

@@ -268,6 +268,8 @@ function generateFeaturesList(
addonsList.push("- **Hono** - Lightweight, performant server framework");
} else if (backend === "express") {
addonsList.push("- **Express** - Fast, unopinionated web framework");
} else if (backend === "fastify") {
addonsList.push("- **Fastify** - Fast, low-overhead web framework");
} else if (backend === "elysia") {
addonsList.push("- **Elysia** - Type-safe, high-performance framework");
} else if (backend === "next") {