npx create-react-app [app-name] --template typescript
npm start시 프로젝트 시작
npm install gh-pages
설치 후 package.json 의 scripts 란에 명령어,homepage url 설정
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"deploy":"gh-pages -d build",
"predeploy":"npm run build"
},
아래에 추가적으로 페이지 url 설정
"homepage": "https://[githubId].github.io/[repository_name]"
git 에 업데이트 후 npm deploy 명령어로 항상 업데이트 해줘야 합니다.