Skip to content

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

1. File System-Based Routing

1.1 Nested Route ->nested folder

1.2 Dynamic Route ->products/[productId]

1.3 Nested Dynamic Route ->products/[productId]/reviews/[reviewId]

1.4 Group Route ->(auth)/login "()"

1.5 Intercept Route ->"(.)f2 /f1/f2"

1.6 Parallel Route ->complex-dashboard/ slots: @notification @users @revenue

1.7 Parallel Intercepting Route

2. Special Files

2.1 page.tsx

2.2 loading.tsx

2.3 not-found.tsx (404 page)

2.4 error.tsx

2.5 Layout.tsx (share data across children)

###2.5.1 Root Layout

2.6 template.tsx (not sharing data, create new instances)

2024-08-30_191841

3. Route Handler and APIs ->/comments

3.0 route.ts

3.1 GET

3.2 POST

3.3 PATCH

3.4 DELETE

4. Rendering (SSR vs CSR)

5. Metadata

About

Nextjs: file based route, special files, SSR, CSR, data fetching

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages