T
tRPC

❓-help

Database error on examples-next-prisma-starter

Mmokyx8/14/2023
Hi, im on node 18.16.0. I'm trying to clone and use this : https://github.com/trpc/examples-next-prisma-starter I'm following the README but unfortunately I got an error : Error: P1001: Can't reach database server at localhost:5432 I guess there is something I'm missing, I supposed the project would automatically create and run a local DB server but it seems to not be the case.
Any clues ^^ ?
AAleed.dev8/14/2023
hey umm from the porject i can see it's using postgres . do u have it installed locally on your system?
Mmokyx8/15/2023
Switched to another example so I can't confirm, but indeed postgres wasnt installed -> might be worth trying if someone encounter the same problem
AAleed.dev8/15/2023
ahh that might be the problem then you can use planetscale .

Looking for more? Join the community!

Recommended Posts
Set server response headers from TRPC standalone adapterHi I am trying to implement my own authentication in Trpc. For this I need to create a session on tReturn TRPC Error from NextJS middlewareI am using trpc for my app's api but Im using NextJS middleware + upstash ratelimitting for.... welluseContext not InvalidatingWhat are the possible mistakes if useContext wont invalidate when doing the following: ```ts const uDeduping is broken, but is being batchedHi all, We're using TRPC for our React Native app, while doing some testing, I saw in my server logQuestion about trpc revalidation methodalright I have a question, why can tRPC detect changes from the DB and refetch. but when I mutate thHow can I enable experimental Suspense on NextJSO have a project with trpc (v.10^) and nextjs 13, and I wanna test the suspense query, but not show Examples of Vitest with React Testing LibraryDoes anyone have examples of how to mock data from tRPC procedure calls? I have client components thHow to refetch based on different eventI have a procedure that fetches all products, I have another one that deletes a project given it's IDockerizing in TRPCHi guys, I am developing a Next app with TRPC subscriptions/websockets and am running into issues trJest set cookie with callerIm trying to test a protectedProcedure, which validates a cookie , if the cookie isnt present, it reUseQuery with no Input but query optionsI have a trpc protected procedure that does not take any input. First argument of use query is input`useQuery` in client componentsI have a very simple app with a single page configured to use SSR. The component that the page rende