웹 개발 입문자도 따라할 수 있는 웹이력서 만들기
터미널 또는 명령 프롬프트에서 아래 명령어 입력:
node -v
npm -v
문제 없이 버전이 출력되면 설치 완료!
npx create-next-app@latest resume --ts
설정 질문이 나오면 이렇게 답변하세요:
질문 | 답변 |
---|---|
Would you like to use ESLint? | Yes (Enter) |
Would you like to use Tailwind CSS? | Yes |
Would you like to use the src/ directory? | Yes |
Would you like to use the App Router? | Yes |
Would you like to customize the default import alias? | No (Enter) |
Would you like to use Turbopack? | No (Enter) 또는 Yes (아래 참고) |
💡 참고: Turbopack은 최신 번들러지만 불안정하다. 문제가 생기면
--turbo=false
옵션을 추가하여 Webpack으로 실행!
resume/
├── src/
│ ├── app/ # 페이지 구조 (App Router)
│ ├── components/ # 재사용 컴포넌트 보관
│ └── styles/ # 전역 CSS (globals.css)
├── public/ # 이미지 등 정적 파일
├── tailwind.config.js # Tailwind 설정
├── postcss.config.js # PostCSS 설정
├── tsconfig.json # TypeScript 설정
└── package.json # 프로젝트 메타 정보
globals.css
수정 (src/app/globals.css)@tailwind;
:root {
--background: #ffffff;
--foreground: #171717;
}
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
tailwind.config.js
module.exports = {
content: [
'./src/app/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
primary: '#facc15', // 노란색
secondary: '#a855f7', // 보라색
},
},
},
plugins: [],
};
postcss.config.js
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
또는 Turbopack을 사용할 경우:
// postcss.config.mjs
const config = {
plugins: ["@tailwindcss/postcss"],
};
export default config;
cd resume
npm install
npm run dev
브라우저에서
http://localhost:3000
접속
.gitignore
확인.gitignore
파일에 다음 항목이 포함되어야 함:
node_modules/
.next/
dist/
.env
git init
git remote add origin https://github.com/your-username/resume.git
git add .
git commit -m "first commit"
git push -u origin main
❗ GitHub에서 레포지토리 먼저 생성
resume
** 선택 → ImportEnvironment Variables
는 생략가능(지금은 필요 없음)https://your-project-name.vercel.app
주소 생성됨이제 웹 이력서 공개! 간단하게 프로젝트 생성 > 배포까지!
내용 채워서 웹 링크로 지원~ ㅎㅎ
Next.js배우면서 spa 구조도 알아보면서 해봐야겠다!