/nextjs-three

Next.js 13 Tutorial for Beginners - part 3

Primary LanguageCSS

Next.js Two


πŸ”° Next.js 13 for Beginners Series

In this series, we’re continuing through the basics of learning the new features of the static site generator, Next.js.

Read the related Blog article for this repository:

Take Your Next.js 13 App to the Next Level with CSS modules & loading with React suspense

βœ… Author Links

πŸ‘‹ Hello, I'm CalvΓ‘rio.

πŸ‘‰ My Portfolio

πŸ“° Check out my Blog with dozens of tutorials

πŸ”– Follow Me:

πŸš€ Description

This repository nextjs-two is referenced as the second part of the Next.js 13 for Beginners tutorial series.

πŸŽ’ Prerequisites

πŸ”¨ Free Web Dev Tools

πŸ“š References

πŸ’» Getting started

We'll dig deeper and look at how we can construct pages and layouts in the new Next.js 13 app directory, and we'll also look at some basic routing.

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

βž• Source Code

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

πŸ“‚ File structure

🟨
    nextjs-three
    |
    β”œβ”€β”€ .next
    |
    β”œβ”€ app
    |   β”œβ”€β”€ about
    |   |   β”œβ”€β”€ layout.tsx
    |   |   └── page.tsx
    |   |
    |   └── api
    |       β”œβ”€β”€ hello
    |       |   └──route.ts
    |       |
    |       β”œβ”€β”€ favicon.ico
    |       β”œβ”€β”€ globals.css
    |       β”œβ”€β”€ layout.tsx
    |       β”œβ”€β”€ page.module.css
    |       └── page.tsx
    |
    β”œβ”€β”€ public
    |   β”œβ”€β”€ next.svg
    |   β”œβ”€β”€ thirteen.svg
    |   └── thirteen.svg
    |
    β”œβ”€β”€ node-modules
    |
    β”œβ”€β”€ .eslintrc.json
    β”œβ”€β”€ .gitignore
    β”œβ”€β”€ next.config.js
    β”œβ”€β”€ next-env.d.ts
    β”œβ”€β”€ package.json
    β”œβ”€β”€ package-lock.json
    β”œβ”€β”€ Readme.md
    └── tsconfig.json
🟨

πŸš€ Installation

1️⃣ Install Project Dependencies:

npm install

🏭 Development

2️⃣ Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

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

✏️ Editing

1️⃣ Start editing the page by modifying app/page.tsx. The page auto-updates instantly as you edit the file.

2️⃣ Start editing the page by modifying about/page.tsx. The page auto-updates instantly as you edit the file.

3️⃣ Start editing the layout by modifying app/layout.tsx. The page auto-updates instantly as you edit the file.

4️⃣ Start editing the layout by modifying about/layout.tsx. The page auto-updates instantly as you edit the file.

πŸŽ“ 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.