Web 강의/ReactJS로 영화 웹 서비스 만들기

[노마드코더/ReactJS로 영화 웹 서비스 만들기]5.0 Deploying to Github Pages & 5.1 Are we done?

sumiin 2022. 3. 23. 11:51
반응형
SMALL

5.0 Deploying to Github Pages

gh-pages 설치

  • npm i gh-pages
  • 웹사이트를 guthub의 github page 도메인에 나타나게 해줌

<package.json>에서 home page 추가

  • "homepage":"https://suminRoh.github.io/movie_app_2021/"}

scripts에 deploy 추가

  • "deploy":"gh-pages "

명령어 만들기

  • deploy : build 폴더를 upload
  • predeploy: npm run build

<index.html> 에서 title 바꾸기
-<title>Movie App</title>

https://suminroh.github.io/movie_app_2021/ 링크로 내가 만든 Movie app 사이트 접속 가능 !!

5.1 Are we done?

state를 갖기 위해 더이상 class component를 가질 필요 없음

  • react hook 때문
반응형
LIST