React
[Next.js] 시작하기
코딩하는 Jay
2021. 9. 9. 22:14
반응형
시스템 요구사항
- Node.js 12.0 이상
- MacOS, Windows 그리고 Linux
세팅
새로운 next.js 앱을 생성하기 위해서는 'create-next-app'을 사용하길 추천한다. 'create-next-app'은 프로젝트의 필요한 모든 것을 세팅해 줍니다.
npx create-next-app
# or
yarn create next-app
만약 TypeScript 프로젝트로 시작하기 원한다면 '—typescript' 플래그를 사용하면 됩니다.
npx create-next-app --typescript
# or
yarn create next-app --typescript
위 명령어를 이용하여 typescript를 사용하는 프로젝트를 만들어보았습니다. 프로젝트 이름은 'next-test-app'으로 했습니다.
npx create-next-app --typescript next-test-app
하위 폴더에 next-test-app 이라는 폴더로 프로젝트가 생성된 것을 확인할 수 있었습니다.
Manual Setup 방법은 아래 링크를 참조하세요.
Getting Started | Next.js
Get started with Next.js in the official documentation, and learn more about all our features!
nextjs.org
참고:
Getting Started | Next.js
Get started with Next.js in the official documentation, and learn more about all our features!
nextjs.org
반응형