Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸŽ‰ FE_2_κΈ°λ³Έμ„ΈνŒ…) FE ν”„λ‘œμ νŠΈ μ„ΈνŒ… - next.js #17

Merged

Conversation

kay0829
Copy link
Contributor

@kay0829 kay0829 commented Aug 9, 2023

이슈번호

μž‘μ—… λ‚΄μš©

  • ν”„λ‘œμ νŠΈ μ„ΈνŒ…
  • ν™”λ©΄ κ΅¬ν˜„
  • 라이브러리 μ„ΈνŒ…
  • 버그 μˆ˜μ •
  • λ¦¬νŒ©ν† λ§

진행 ν™”λ©΄

image

  • next.js 둜 ν”„λ‘œμ νŠΈ μ„ΈνŒ…μ„ μ§„ν–‰ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
    • μ‚¬μš©ν•œ μ»€λ§¨λ“œ: npx create-next-app@latest --experimental-app
      • App Routerκ°€ λ² νƒ€ν…ŒμŠ€νŠΈ λ‹¨κ³„μ˜€μ„ λ•Œ app 을 μ‚¬μš©ν•  경우 --experimental-app μ˜΅μ…˜ μΆ”κ°€

App Router

  • 5μ›” 5일 이후 App Routerκ°€ Stable 단계에 λ“€μ–΄μ„°μŒμ„ 곡식 λ°œν‘œν•˜μ˜€μœΌλ©° ν˜„μž¬λŠ” ν•΄λ‹Ή μ˜΅μ…˜μ„ μΆ”κ°€ν•  ν•„μš”κ°€ μ—†μŒ
  • App RouterλŠ” Next.jsμ—μ„œ 라우트λ₯Ό μ²˜λ¦¬ν•˜κ³  λ·°λ₯Ό λ Œλ”λ§ν•˜κΈ° μœ„ν•œ μƒˆλ‘œμš΄ μ „λž΅
  • App Router에 λŒ€ν•œ μžμ„Έν•œ μ„€λͺ…
  • layout.js와 page.js λ“± μ˜ˆμ•½ νŒŒμΌμ— λŒ€ν•œ μ„€λͺ…: μ• ν”Œμ½”λ”© next.js κ°•μ˜ 3:44
  • File Conventions 곡식 λ¬Έμ„œ

κ·Έ μ™Έ μ„€μ •

  • typescript: No
  • ESLint: Yes
  • Tailwindcss(atomic λ””μžμΈ 라이브러리): No
  • src/ directory (λ‹¨μˆœ src 폴더λ₯Ό 쓸지 μ—¬λΆ€μž…λ‹ˆλ‹€!) : Yes
  • App Router: Yes
  • import alias (μ ˆλŒ€κ²½λ‘œ) : Yes

recoil

κ²°κ³Ό ν™”λ©΄

default.mp4
  • 곡용 μ»΄ν¬λ„ŒνŠΈ 적용: root 에 μžˆλŠ” page.js νŒŒμΌμ— components/common/Gnb.jsx 경둜의 Gnb μ»΄ν¬λ„ŒνŠΈλ₯Ό import ν•˜μ—¬ μ‚¬μš©ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
  • /: "use client"λ₯Ό μ„ μ–Έν•œ Gnb μ»΄ν¬λ„ŒνŠΈμ— recoil valueκ°€ 잘 μ μš©λ˜λŠ” 뢀뢄을 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.
  • /users: users 폴더 μ•ˆμ˜ page.js 파일이 λ Œλ”λ§ λ˜λŠ” λΆ€λΆ„ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.
  • /users/signup: users/signup 폴더 μ•ˆμ˜ page.js 파일이 λ Œλ”λ§ λ˜λŠ” λΆ€λΆ„ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.
  • /users/:nickname: users/[nickname] 폴더 μ•ˆμ˜ page.js 파일이 λ Œλ”λ§ λ˜λŠ” λΆ€λΆ„ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

μ ˆλŒ€κ²½λ‘œ

κ·œμΉ™ 정리

  • μ»΄ν¬λ„ŒνŠΈλŠ” λŒ€λΆ„μžλ‘œ μ‹œμž‘ν•΄μ•Ό ν•΄μš”!
  • μ»΄ν¬λ„ŒνŠΈλŠ” function으둜 μ„ μ–Έν•˜κ³  ν•˜λ‹¨μ— export default ν•΄μ£Όμ„Έμš”!
function Home() {
    return (
        <div>hello</div>
    );
}

export default Home;
  • prettierrc μ·¨ν–₯ μ•Œλ €μ£Όμ‹œλ©΄ μˆ˜μ •ν•˜λ„λ‘ ν•˜κ² μŠ΅λ‹ˆλ‹€!
  • μ»΄ν¬λ„ŒνŠΈμ˜ 경우 ν™•μž₯자 jsx둜 톡일 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€!
  • κ²½λ‘œλŠ” μ ˆλŒ€ 경둜둜 μ‚¬μš©ν•΄μ£Όμ„Έμš”!

μž‘μ—… 쀑 이슈 사항 λ˜λŠ” TODO 둜 남겨둔 λΆ€λΆ„

  • api fetch ν•˜λŠ” λΆ€λΆ„

@kay0829 kay0829 self-assigned this Aug 10, 2023
Copy link
Collaborator

@prinzusseugen prinzusseugen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€! ν”„λ‘ νŠΈμ—”λ“œ λΆ„λ“€ νŒŒμ΄νŒ…~!!

@schani3
Copy link
Collaborator

schani3 commented Aug 10, 2023

κ³ μƒλ§ŽμœΌμ…¨μŠ΅λ‹ˆλ‹€!

@tyrue
Copy link
Collaborator

tyrue commented Aug 10, 2023

ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€!

Copy link
Collaborator

@PeterAhnn PeterAhnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€!

@kay0829 kay0829 merged commit c35ae4b into codestates-seb:develop Aug 10, 2023
prinzusseugen pushed a commit to prinzusseugen/seb45_pre_034 that referenced this pull request Aug 14, 2023
* [FE] πŸŽ‰ 2) next.js둜 ν”„λ‘œμ νŠΈ μ„ΈνŒ…

* [FE] πŸ”§ 2) .prettierrc μΆ”κ°€

* [FE] ✏️ 2) prettier 적용

* [FE] πŸ”§ 2) node, npm 버전 λͺ…μ‹œ

* [FE] πŸ’„ 2) reset css 적용

* [FE] πŸ”₯ 2) λΆˆν•„μš”ν•œ μ½”λ“œ μ‚­μ œ

* [FE] πŸ”¨ 2) λΌμš°νŒ… ν…ŒμŠ€νŠΈ 파일 μΆ”κ°€

* [FE] πŸ”¨ 2) Not Found ν™”λ©΄ μΆ”κ°€

* [FE] πŸ”¨ 2) λΌμš°νŒ… 및 곡톡 μ»΄ν¬λ„ŒνŠΈ ν…ŒμŠ€νŠΈ 파일 μΆ”κ°€

* [FE] πŸ“¦ 2) recoil 라이브러리 μΆ”κ°€

* [FE] 🚚 2) jsx 파일 ν™•μž₯자 jsx둜 λͺ…μ‹œ

* [FE] πŸ”§ 2) Rocoil μ„ΈνŒ…

* [FE] πŸ”§ 2) μ˜ˆμ‹œ atom μΆ”κ°€ 및 적용 μ˜ˆμ‹œ

* [FE] 🚚 2) jsx 파일 ν™•μž₯자 jsx둜 λͺ…μ‹œ

* [FE] πŸ”¨ 2) μ ˆλŒ€κ²½λ‘œ μΆ”κ°€ 및 λͺ¨λ“  νŒŒμΌμ— μ ˆλŒ€ 경둜 적용

* [FE] πŸ› 2) μ ˆλŒ€κ²½λ‘œ μˆ˜μ •
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants