Skip to content

Instantly share code, notes, and snippets.

View omer-os's full-sized avatar
🎯
Focusing

omar chatin omer-os

🎯
Focusing
View GitHub Profile

Trpc and Graphql

In my journey to refine the tech stack for future projects, I discovered the T3 Stack, diving into its components and advantages. This venture builds on my experiences from a recent shift from GraphQL to tRPC in a project, which significantly enhanced my development process and simplified the project architecture. Here, I share reflections and lessons from this transition, emphasizing that while my views are shaped by personal experience, they are not definitive judgements but rather observations of the challenges and benefits encountered.

GraphQL: The Challenges

  • Complex Setup: The integration of GraphQL with TypeScript on the frontend requires a suite of additional tools — notably, codegen for translating GraphQL schemas to TypeScript types and urql (alongside its extensions) for handling mutations and queries. This not only complicates the initial setup but also burdens the development experience (DX) with the need for ongoing updates to types in response to schema modific
@omer-os
omer-os / README.md
Last active December 9, 2024 21:53
rule based authentication with nextjs, typescript, next-auth, prisma and postgressql db hosted in railway

Role-Based Authentication in Next.js with Prisma and Next-Auth

A step-by-step guide to setting up role-based authentication in a Next.js project using Prisma and Next-Auth.

Step 1: Setting Up Your Next.js Application

pnpm create next-app ./
@omer-os
omer-os / readme.md
Last active December 7, 2024 09:52
How to Enable Tailwind CSS IntelliSense for Class-Variance-Authority in Visual Studio Code

How to Enable Tailwind CSS IntelliSense for Class-Variance-Authority in Visual Studio Code

Its just three steps

1- install Tailwind CSS IntelliSense extension

2- create this file .vscode/settings.json

3- copy paste this inside of settings.json