2. Create app
Set up
git 설정
# next.js
/.next/
# dependencies
/node_modules
pnpm-lock.yaml
package-lock.json
yarn.lockScripts 및 초기 실행
프로젝트 초기화 및 원격 저장소 연결
기본 레이아웃 생성
참고
마지막 업데이트
# next.js
/.next/
# dependencies
/node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock마지막 업데이트
{
"name": "x2bee-fo",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "^14.1.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}$ npm run dev$ git init
$ git remote add origin https:// git 주소
$ git remote -v # 확인용$ git add .
$ git commit -m 'x2bee storefront with Next14'
$ git push origin mainimport React from 'react'
const RootLayout = ({ children }) => {
return (
<html lang="ko">
<body>{children}</body>
</html>
);
};
export default RootLayout;$ ls node_modules/.bin # next 등이 있는지 확인
# next$ npx next --help
# Available commands build, start, export, dev, lint, telemetry, info, experimental-compile, experimental-generate