Skip to content

Feat: 3주차 미션 1 - #23

Open
soyun0318 wants to merge 40 commits into
mainfrom
week3/sori-m1
Open

Feat: 3주차 미션 1#23
soyun0318 wants to merge 40 commits into
mainfrom
week3/sori-m1

Conversation

@soyun0318

Copy link
Copy Markdown
Collaborator

📚 주차 / 미션

  • 3주차 1번째 미션

📌 작업 내용

  • 영화 DB 리스트 불러오기

✨ 상세 작업 내용

  • 영화 데이터 불러오기: useEffect 활용
  • UI 디자인: Tailwind CSS & Hover 효과

📸 스크린샷

image

❓ 리뷰어가 알아야 할 사항 / 질문


✅ 체크리스트

  • [ ✅] 기능 정상 작동 확인
  • [ ✅] 불필요한 주석 삭제
  • [ ✅] 해당 주차 키워드 내용 이해

Comment thread week3/src/pages/movies.tsx Outdated
'https://api.themoviedb.org/3/movie/popular?language=ko-KR&page=1',
{
headers: {
Authorization: `Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJjYzVjY2QxZjMyMDVlZmFjODkyYzVlNTgxNWY1MjY4OSIsIm5iZiI6MTc3NDk5Njk3OS43MTEsInN1YiI6IjY5Y2M0ZGYzYTI1M2YwYzcyNGVkNDdlOSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.APchjMzIRObS5T04QcUSNIveb8Kq3D0QGhwvpeJM0y0`,

@yewon20804 yewon20804 Apr 7, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

현재 API 토큰 값을 하드코딩으로 넣으셨는데, 이 상태로 깃허브에 올라가면 키 탈취 위험이 있어 위험합니다!
이러한 키 값은 .env 파일을 생성하여 VITE_TMDB_KEY=키값 으로 키 값을 정의하고, Authorization에서 변수 값을 import하는 방식이 적절합니다! 참고로 .env 파일은 .gitignore에 추가해서 깃허브에 업로드 안되도록 처리해주셔야 합니다! 또한 현재 키 값은 이미 노출이 되었으니 새로 재발급 받고 진행해주시면 됩니다!

Comment thread week3/src/pages/movies.tsx Outdated
const MoviesPage = () => {
const [movies, setMovies] = useState<Movie[]>([]);

console.log(movies); // 영화 데이터 체크

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

console문은 pr 업로드 시 제거해주시는 것이 좋습니다 ☺️

Comment thread week3/src/App.css

@yewon20804 yewon20804 Apr 7, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

각 페이지마다 tailwind로 스타일을 작성해주셨기 때문에 사용하지 않는 스타일은 제거해주시는게 좋아요 !

Comment thread week3/src/App.tsx
@@ -0,0 +1,33 @@
import './App.css';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

여기도 App.css 스타일을 사용하지 않으니 제거해주시는 것이 좋을 것 같습니다 ☺️

Comment thread week3/src/index.css

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

여기도 Vite가 기본으로 생성해주는 스타일이 그대로 남아 있는데 사하지 않는 스타일은 지워주시는게 좋습니다 !

@yewon20804 yewon20804 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

미션 1 수고하셨습니다! 😊
components, layout, pages, types로 폴더 구조를 잘 나누어 구성해주신 점이 좋았습니다 !
코멘트에도 남겼지만, API 키가 코드에 노출된 부분은 보안상 위험해서 꼭 확인하시고 수정 부탁드립니다 !

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.

3 participants