Guide for a Newbie
Hey guys!!
I'm absolutely new to backend development, I have just a bare-bone version of a next.js project and I want to integrate Neon with my project how can I do it? The docs are crazy and I can't make sense of a single line. Can you please help!
5 Replies
harsh-harlequin•3w ago
Hey!
What specfically are you having issues with, I'd be happy to point you in the right direction
fair-roseOP•3w ago
I honestly don't know anything, how can I set up the database, how can I connect my database with the Next.js project, how data will be fetched and mutated. The neon docs have this https://neon.com/docs/guides/nextjs but this implementation is completely different what I see in the next.js official project repository.!!
Neon
Connect a Next.js application to Neon - Neon Docs
Next.js by Vercel is an open source web development framework that enables React based web applications. This topic describes how to create a Neon project and access it from a Next.js application. To ...
harsh-harlequin•3w ago
Everything you see in that guide are things that you would need to add to your app, they don't get generated when you run create-next-app. I think your best bet would be to first familiarise yourself with Postgres using our tutorial section : https://neon.com/postgresql/tutorial
Then, you should have a quick read through the next.js docs and understand server actions and components, since those are where you will be accessing your database.
Once you have a basic grasp of those, I would recommend checking out Drizzle ORM
Neon
PostgreSQL Tutorial
Learn PostgreSQL quickly through a practical PostgreSQL tutorial designed for database administrators and application developers.
harsh-harlequin•3w ago
Walking through this guide here would be useful to you, you'll touch on all the most important parts of using Neon + Next.js + Drizzle
Drizzle ORM - Todo App with Neon Postgres
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
fair-roseOP•3w ago
Oh! Thanks a lot, I will update you after doing all that stuff😃