From 697fb047cd61e963d067d1b6970733d7adaf7fd8 Mon Sep 17 00:00:00 2001 From: ibrahim-pk Date: Fri, 21 Mar 2025 11:24:13 +0600 Subject: [PATCH] adding some information for nextjs app router --- data/nextjs.json | 88 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 87 insertions(+), 1 deletion(-) diff --git a/data/nextjs.json b/data/nextjs.json index e57397fc1..d1191d0cc 100644 --- a/data/nextjs.json +++ b/data/nextjs.json @@ -178,6 +178,92 @@ "code": "https://nextjs.org/docs/api-reference/next.config.js/introduction" } ] + }, + { + "title": "নেক্সট জেএস অ্যাপ রাউটারের A to Z", + "items": [ + { + "section": "Routing", + "definition": "Next.js App Router এর মাধ্যমে ফাইল-ভিত্তিক রাউটিং তৈরি করা হয়", + "code": "app/page.js (home page), app/about/page.js" + }, + { + "definition": "ডাইনামিক রাউট তৈরি করতে", + "code": "app/blog/[slug]/page.js" + }, + { + "definition": "ক্যাচ-অল রাউট তৈরি করতে", + "code": "app/docs/[...slug]/page.js" + }, + { + "definition": "ক্লায়েন্ট কম্পোনেন্ট থেকে নেভিগেট করতে", + "code": "useRouter()" + }, + { + "section": "Data Fetching", + "definition": "সার্ভার কম্পোনেন্টের মধ্যে ডাটা ফেচ করার জন্য", + "code": "fetch('https://api.example.com/data')" + }, + { + "definition": "সার্ভার অ্যাকশন ব্যবহার করে ফর্ম সাবমিট করতে", + "code": "'use server'; export async function createPost(formData) { ... }" + }, + { + "section": "Caching", + "definition": "স্ট্যাটিক ডাটা ক্যাশিং করার জন্য", + "code": "fetch('...', { next: { revalidate: 60 } })" + }, + { + "definition": "ডাটা ক্যাশিং বন্ধ করতে", + "code": "fetch('...', { cache: 'no-store' })" + }, + { + "section": "Styling", + "definition": "গ্লোবাল CSS ফাইল ইম্পোর্ট করতে", + "code": "import '@/styles/globals.css';" + }, + { + "definition": "Tailwind CSS ব্যবহার করতে", + "code": "npm install -D tailwindcss postcss autoprefixer" + }, + { + "section": "Optimization", + "definition": "ইমেজ অপটিমাইজ করতে", + "code": "Image" + }, + { + "definition": "Font অপটিমাইজ করতে", + "code": "import { Inter } from 'next/font/google';" + }, + { + "section": "Configuration", + "definition": "Next.js কনফিগারেশন ফাইল", + "code": "next.config.js" + }, + { + "section": "Testing", + "definition": "Jest এবং React Testing Library সেটআপ করতে", + "code": "npm install --save-dev jest @testing-library/react" + }, + { + "section": "Authentication", + "definition": "NextAuth.js ব্যবহার করে অথেনটিকেশন ইন্টিগ্রেট করতে", + "code": "npm install next-auth" + }, + { + "section": "Deploying", + "definition": "Vercel-এ ডিপ্লয় করতে", + "code": "vercel --prod" + } + ] } + + ] -} \ No newline at end of file +} + + + + + +