I've been using the app/ dir for a couple months now on a side project and I'm really liking how concisely I can build UI + backend + deployment. Vercel is getting some heat for it's pricing, but Next.js is really pushing forward what's possible for people without fiddling with DevOps, separate frontend deployment, separate backend deployment, etc. Coming from Django with Create React App, Django Rest Framework, on a VPS, is a relative nightmare compared to Next.<p>For example, in one small file, two functions, you have a reactive UI, styling (Tailwind), backend with database fetching, routing, and deployment handled:<p>async function getPostsFromDb() {<p><pre><code> return await prisma.posts.findMany();</code></pre>
}<p>export default async function PostsPage() {<p><pre><code> const posts= await getPostsFromDb();
return (
<main className="flex min-h-screen flex-col items-center justify-center">
{posts.map((post) => {
return (
<GradientCard
key={post.name}
title={post.name}
/>
);
})}
</main>
);
}</code></pre>