Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 87 additions & 1 deletion data/nextjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 src='/image.jpg' width={500} height={300} alt='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"
}
]
}


]
}
}