Skip to content

Commit 697fb04

Browse files
committed
adding some information for nextjs app router
1 parent 2f70596 commit 697fb04

File tree

1 file changed

+87
-1
lines changed

1 file changed

+87
-1
lines changed

data/nextjs.json

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,92 @@
178178
"code": "https://nextjs.org/docs/api-reference/next.config.js/introduction"
179179
}
180180
]
181+
},
182+
{
183+
"title": "নেক্সট জেএস অ্যাপ রাউটারের A to Z",
184+
"items": [
185+
{
186+
"section": "Routing",
187+
"definition": "Next.js App Router এর মাধ্যমে ফাইল-ভিত্তিক রাউটিং তৈরি করা হয়",
188+
"code": "app/page.js (home page), app/about/page.js"
189+
},
190+
{
191+
"definition": "ডাইনামিক রাউট তৈরি করতে",
192+
"code": "app/blog/[slug]/page.js"
193+
},
194+
{
195+
"definition": "ক্যাচ-অল রাউট তৈরি করতে",
196+
"code": "app/docs/[...slug]/page.js"
197+
},
198+
{
199+
"definition": "ক্লায়েন্ট কম্পোনেন্ট থেকে নেভিগেট করতে",
200+
"code": "useRouter()"
201+
},
202+
{
203+
"section": "Data Fetching",
204+
"definition": "সার্ভার কম্পোনেন্টের মধ্যে ডাটা ফেচ করার জন্য",
205+
"code": "fetch('https://api.example.com/data')"
206+
},
207+
{
208+
"definition": "সার্ভার অ্যাকশন ব্যবহার করে ফর্ম সাবমিট করতে",
209+
"code": "'use server'; export async function createPost(formData) { ... }"
210+
},
211+
{
212+
"section": "Caching",
213+
"definition": "স্ট্যাটিক ডাটা ক্যাশিং করার জন্য",
214+
"code": "fetch('...', { next: { revalidate: 60 } })"
215+
},
216+
{
217+
"definition": "ডাটা ক্যাশিং বন্ধ করতে",
218+
"code": "fetch('...', { cache: 'no-store' })"
219+
},
220+
{
221+
"section": "Styling",
222+
"definition": "গ্লোবাল CSS ফাইল ইম্পোর্ট করতে",
223+
"code": "import '@/styles/globals.css';"
224+
},
225+
{
226+
"definition": "Tailwind CSS ব্যবহার করতে",
227+
"code": "npm install -D tailwindcss postcss autoprefixer"
228+
},
229+
{
230+
"section": "Optimization",
231+
"definition": "ইমেজ অপটিমাইজ করতে",
232+
"code": "<Image src='/image.jpg' width={500} height={300} alt='Image' />"
233+
},
234+
{
235+
"definition": "Font অপটিমাইজ করতে",
236+
"code": "import { Inter } from 'next/font/google';"
237+
},
238+
{
239+
"section": "Configuration",
240+
"definition": "Next.js কনফিগারেশন ফাইল",
241+
"code": "next.config.js"
242+
},
243+
{
244+
"section": "Testing",
245+
"definition": "Jest এবং React Testing Library সেটআপ করতে",
246+
"code": "npm install --save-dev jest @testing-library/react"
247+
},
248+
{
249+
"section": "Authentication",
250+
"definition": "NextAuth.js ব্যবহার করে অথেনটিকেশন ইন্টিগ্রেট করতে",
251+
"code": "npm install next-auth"
252+
},
253+
{
254+
"section": "Deploying",
255+
"definition": "Vercel-এ ডিপ্লয় করতে",
256+
"code": "vercel --prod"
257+
}
258+
]
181259
}
260+
261+
182262
]
183-
}
263+
}
264+
265+
266+
267+
268+
269+

0 commit comments

Comments
 (0)