{"id":26833413,"url":"https://github.com/mr-won/react","last_synced_at":"2025-03-30T15:28:55.608Z","repository":{"id":219571183,"uuid":"747150771","full_name":"mr-won/React","owner":"mr-won","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-08T16:34:12.000Z","size":572,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T02:27:15.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mr-won.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-23T11:17:27.000Z","updated_at":"2024-03-08T03:53:49.000Z","dependencies_parsed_at":"2024-12-31T05:29:22.337Z","dependency_job_id":"99936f6f-0f9b-4eec-9511-742d3ff24b80","html_url":"https://github.com/mr-won/React","commit_stats":null,"previous_names":["wonchihyeon/react","chihyeonwon/react","chihyunwon/react","mr-won/react"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-won%2FReact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-won%2FReact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-won%2FReact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-won%2FReact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mr-won","download_url":"https://codeload.github.com/mr-won/React/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246337882,"owners_count":20761285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-30T15:28:54.674Z","updated_at":"2025-03-30T15:28:55.602Z","avatar_url":"https://github.com/mr-won.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 리액트 프로젝트\n[스타일 참고한 레포지토리](https://github.com/AlanBinu007/Netflix_Clone_ReactJs)\n```\n스타일을 참고한 레포지토리에서 적당히 원하는 스타일로 고쳐서 만든 프론트엔드 작업영역이다.\n```\n## API 연결하기\n#### constants.js\n![image](https://github.com/chihyeonwon/React/assets/58906858/024f99d0-3342-4247-82d4-ec27f1414785)\n```\nAPI 폴더의 constants.js 파일에서 YOUR-API-URL 부분을 호스팅 중인 도메인 주소(http://www.oneflix.link)로 수정한다. \n```\n## GitHub Pages로 배포하기\n![image](https://github.com/chihyeonwon/React/assets/58906858/0cceb3f1-5cf9-43a4-97d5-c3b8bc995001)\n```\n리포지토리의 Setting - GitHub Pages - Branch 에서 None으로 되어있는 부분을 main으로 수정하고 save한다.\n```\n#### package.json 수정\n![image](https://github.com/chihyeonwon/React/assets/58906858/3270c042-d069-4b82-b1c1-c0cf6c260bcb)\n```\npackage.json의 homepage 항목의 YOUR-GITHUB-PAGES-URL 부분을 리포지토리 설정에 해당하는 URL로 바꿔준다.\nhttp://chihyeonwon.github.io/React\n```\n#### yarn 설치\n![image](https://github.com/chihyeonwon/React/assets/58906858/9848de54-923f-43f8-874c-5c0ef8c6e237)\n```\n터미널에 다음 명령어를 입력하여 yarn 패키지를 먼저 설치한다. \n```\n#### yarn deploy\n![image](https://github.com/chihyeonwon/React/assets/58906858/7aaf6869-66ff-4e1f-9a3c-64aaf3af4928)\n![image](https://github.com/chihyeonwon/React/assets/58906858/0fb754da-cfc0-4536-934f-9fc1b1014c32)\n```\nyarn deploy 명령어를 사용하여 GitHub Pages에 배포가 되면 아래와 같은 메시지가 나온다.\n```\n#### gh-pages Branch 변경\n![image](https://github.com/chihyeonwon/React/assets/58906858/f37aa77f-8c63-4c53-a206-9620a625d395)\n```\n다시 GitHub Pages로 와서 브랜치를 main에서 yarn deploy 명령어 이후에 새롭게 생긴 gh-pages 브랜치로 설정한다.\n```\n#### yarn deploy\n\n```\n다시 한번 deploy 명령어를 실행한다.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-won%2Freact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-won%2Freact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-won%2Freact/lists"}