Skip to content

Instantly share code, notes, and snippets.

View ninja-1337's full-sized avatar
:octocat:
Forking with a Trident

EE ninja-1337

:octocat:
Forking with a Trident
View GitHub Profile
@mkcode
mkcode / route.ts
Last active November 7, 2024 23:29
How to setup Next App Router + Clerk + TRPC
// TRPC API endpoint
// src/app/api/trpc/[trpc]/route.ts
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import { type NextRequest } from "next/server";
import { env } from "~/env";
import { appRouter } from "~/server/api/root";
import { createTRPCContext } from "~/server/api/trpc";
import { getAuth } from "@clerk/nextjs/server";
@ryands17
ryands17 / tut.md
Last active July 15, 2024 15:28 — forked from ikouchiha47/tut.md
Implementing a peer to peer chat prototype in nodejs.

prologue

Why another tutorial? Because there are other tutorials which write a server - client or maybe a client client where they have only two clients, maybe by hardcoding ips.

<rant>
  What annoys me more is, that there are 100's of same tutroials on the internet, 
 that just works for a given scenario, but guess what, I don't fucking care what works