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>
This commit is contained in:
Juan Sebastián Montoya 2025-03-06 19:15:56 -05:00 committed by Juan Sebastián Montoya
parent b4e5a04126
commit 6214b503bc
47 changed files with 4968 additions and 5424 deletions

View file

@ -1,26 +1,19 @@
{
"name": "unreal-chat",
"name": "ultimate-chat",
"private": true,
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"start": "turbo run start",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"check-types": "turbo run check-types",
"api:dev": "turbo run dev --filter=api",
"web:dev": "turbo run dev --filter=web",
"api:build": "turbo run build --filter=api",
"web:build": "turbo run build --filter=web",
"api:start": "turbo run start --filter=api",
"web:start": "turbo run start --filter=web",
"prisma:generate": "cd apps/api && npm run prisma:generate",
"prisma:migrate": "cd apps/api && npm run prisma:migrate",
"prisma:studio": "cd apps/api && npm run prisma:studio",
"prisma:init": "cd apps/api && npm run prisma:init"
"check-types": "turbo run check-types"
},
"devDependencies": {
"@types/node": "^22.13.9",
"dotenv-cli": "^8.0.0",
"nodemon": "^3.1.9",
"prettier": "^3.5.3",
"ts-node": "^10.9.2",
"turbo": "^2.4.4",
"typescript": "5.8.2"
},