DEV Community

Cover image for Hello Next.js!
Tatsu@Tokyo🇯🇵
Tatsu@Tokyo🇯🇵

Posted on

Hello Next.js!

Create Next.js Project

Just type

npx create-next-app project-name

Directory

project-name
  ┣ node_modules/
  ┣ public/
  ┃ ┣ favicon.ico
  ┃ ┗ versal.svg
  ┣ pages/
  ┃ ┣ api/
  ┃ ┃ ┗ helle.js
  ┃ ┣ _app.js
  ┃ ┗ index.js
  ┣ styles/
  ┃ ┣ global.css
  ┃ ┗ Home.module.css
  ┣ package.json
  ┣ package-lock.json
  â”— README.md

Hello Next.js

npm run dev

Access localhost:3000, then you can see a welcome page

Alt Text

Top comments (0)