시작하기
시스템 요구 사항:
- 노드 12.22.0 이상
- MacOS, Windows(WSL 포함), Linux
자동 설정
모든 것을 자동으로 설정하는 create-next-app
을 사용하여 새로운 넥스트 앱을 만드는 것을 권장합니다. 프로젝트를 생성하려면 다음을 실행합니다.
- npm
- Yarn
bash
npx create-next-app@latest
bash
npx create-next-app@latest
bash
yarn create next-app
bash
yarn create next-app
타입스크립트 프로젝트로 시작하려면 --typescript
플래그를 사용합니다.
- npm
- Yarn
bash
npx create-next-app@latest --typescript
bash
npx create-next-app@latest --typescript
bash
yarn create next-app --typescript
bash
yarn create next-app --typescript
설치가 완료된 후에 다음을 수행합니다.
npm run dev
을 실행해http://localhost:3000
에서 개발 서버를 시작합니다.http://localhost:3000
을 방문해 앱을 확인합니다.pages/index.js
를 수정하고 브라우저에서 갱신된 결과를 확인합니다.