Next.js Discord

Discord Forum

Integrate backend into frontend with Next.com

Unanswered
Himalayan posted this in #help-forum
Open in Discord
HimalayanOP
Hey guys, I already have a Fastify backend ready with the routes set up, everything's fine. Now I want to call these routes on the Next frontend, but I don't want to just create a use-hook.ts file and call fetch() and be done with it. I'd like project examples, like in the pictures. Something well-structured.

6 Replies

HimalayanOP
but i didn't this example of picture nor files
@Himalayan but i didn't this example of picture nor files
there are some common patterns, that people using all over the world. Some of the most attractive ones are here: https://nextjs.org/docs/app/getting-started/project-structure#examples