Seperate or external back-end

Is it good having a seperate back-end using e.g. Django and communicating with api, or is it best practice for Next to use something like Prisma?
10 Replies
barry
barry•2y ago
django is for api's? prisma is not the same as django this qusetion is so confusing, you gotta rewrite it or make it make more sense lol
niels
niels•2y ago
But for like the database stuff
barry
barry•2y ago
django has nothing to do with database stuff or it does but it does a lot more
niels
niels•2y ago
Let me rewrite it in a few minutes haha Alright this is my current situation I'd like to experiment with building apps with Next. I'm familiar with React and a little with Next, but so far I have zero experience with Next's backend capabilities I was wondering if I should/could use an external back-end and communicate to my front-end Nextjs, or is this a bad approach and should I dive into Next's back-end and use something like Prisma for a database At work we have several projects with NextJS and then a back-end/middleware with either Django or a PHP framework Hence my question @barry
barry
barry•2y ago
Alright, yes I would definitely dive into the backend aspect of Next.js since it's awesome, you can pop up end points smooth like butter in no time, even type safe with tRPC.
niels
niels•2y ago
Sorry for the earlier confusion haha Would I need something like Express?
barry
barry•2y ago
No just look into the docs. See how it works
Wezter
Wezter•2y ago
@Niels Have you looked anything at tRPC? I would strongly suggest you take a look at that as well 😄 Then you can get full type safety between BE and FE without any code gen
niels
niels•2y ago
Been trying to get an idea of it, couldn't really find a clear example on tRPC thus far
barry
barry•2y ago
The t3 default template. The TLDR of you not knowing what to do and what to do about it is: Just begin making stuff. Quantity over quality is right at this point. Just use stuff, learn new tech, get your own opinion, instead of researching for hours and hours to make 1 thing.
Want results from more Discord servers?
Add your server