unreal-chat/apps/api/package.json
Jusemon 6214b503bc Feature/Use fastify instead of express (#1)
- Replaced Apollo Server with Mercurius for GraphQL API
- Updated resolvers to use Mercurius-compatible GraphQL implementation
- Migrated from Express to Fastify for server framework
- Improved error handling with GraphQL error extensions
- Added Zod for environment variable validation
- Updated Prisma schema and migrations
- Configured CORS and WebSocket subscriptions
- Simplified GraphQL schema and resolver structure
- Enhanced type safety and code organization
- Replaced Apollo Server with Mercurius for GraphQL API
- Updated resolvers to use Mercurius-compatible GraphQL implementation
- Migrated from Express to Fastify for server framework
- Improved error handling with GraphQL error extensions
- Added Zod for environment variable validation
- Updated Prisma schema and migrations
- Configured CORS and WebSocket subscriptions
- Simplified GraphQL schema and resolver structure
- Enhanced type safety and code organization

Reviewed-on: #1
Co-authored-by: Jusemon <juansmm@outlook.com>
Co-committed-by: Jusemon <juansmm@outlook.com>
2025-03-06 19:15:56 -05:00

39 lines
1,002 B
JSON

{
"name": "api",
"version": "1.0.0",
"description": "This project was bootstrapped with Fastify-CLI.",
"main": "dist/index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "ts-node --test test/**/*.test.ts",
"start": "node dist/index.js",
"dev": "nodemon --delay 2000ms src/index.ts",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:init": "prisma migrate dev --name init",
"build": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@fastify/cors": "^11.0.0",
"@prisma/client": "^6.4.1",
"dotenv": "^16.4.7",
"fastify": "^5.2.1",
"fastify-cli": "^7.3.0",
"fastify-plugin": "^5.0.0",
"graphql": "^16.10.0",
"mercurius": "^16.1.0",
"mercurius-codegen": "^6.0.1",
"zod": "^3.24.2"
},
"devDependencies": {
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"typescript": "5.8.2",
"prisma": "^6.4.1"
}
}