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