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:
parent
b4e5a04126
commit
6214b503bc
47 changed files with 4968 additions and 5424 deletions
|
@ -1,10 +1,10 @@
|
|||
# Unreal Chat API
|
||||
|
||||
The backend API for the Unreal Chat application, built with Apollo Server, GraphQL, and Prisma.
|
||||
The backend API for the Unreal Chat application, built with Mercurius, GraphQL, and Prisma.
|
||||
|
||||
## Features
|
||||
|
||||
- GraphQL API with Apollo Server
|
||||
- GraphQL API with Mercurius
|
||||
- Real-time subscriptions for messages and rooms
|
||||
- Prisma ORM with MariaDB
|
||||
- User authentication
|
||||
|
@ -42,7 +42,7 @@ npm run prisma:migrate
|
|||
npm run dev
|
||||
```
|
||||
|
||||
The API will be available at http://localhost:4000/graphql.
|
||||
The API will be available at http://localhost:8080/graphql.
|
||||
|
||||
## Available Scripts
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue