{"id":24527764,"url":"https://github.com/happyloa/hex2024-react-training-week4","last_synced_at":"2026-04-12T15:38:11.044Z","repository":{"id":272892459,"uuid":"918072404","full_name":"happyloa/Hex2024-React-Training-Week4","owner":"happyloa","description":"六角 2024 React 作品實戰冬季班第四週作業 - 元件化","archived":false,"fork":false,"pushed_at":"2025-01-24T07:23:56.000Z","size":1366,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T16:43:05.391Z","etag":null,"topics":["axios","bootstrap5","components","gh-pages","json","jsx","map","react","soc","swagger-ui","vite"],"latest_commit_sha":null,"homepage":"http://hex2024-react-training-week4.worksbyaaron.com/","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/happyloa.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":"2025-01-17T07:41:13.000Z","updated_at":"2025-01-24T07:23:49.000Z","dependencies_parsed_at":"2025-01-17T09:28:01.431Z","dependency_job_id":"7c936e44-d118-4006-b4aa-b9dc6a556e0f","html_url":"https://github.com/happyloa/Hex2024-React-Training-Week4","commit_stats":null,"previous_names":["happyloa/hex2024-react-training-week4"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/happyloa/Hex2024-React-Training-Week4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/happyloa","download_url":"https://codeload.github.com/happyloa/Hex2024-React-Training-Week4/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week4/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264812052,"owners_count":23667859,"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":["axios","bootstrap5","components","gh-pages","json","jsx","map","react","soc","swagger-ui","vite"],"created_at":"2025-01-22T06:32:49.993Z","updated_at":"2026-04-12T15:38:06.006Z","avatar_url":"https://github.com/happyloa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://i.imgur.com/281HBnX.png)\n\n# 六角 2024 React 作品實戰冬季班第四週作業 - 元件化\n\n- [線上部署連結](http://hex2024-react-training-week4.worksbyaaron.com/)\n- [作業範例](https://github.com/hexschool/react-training-chapter-2024)\n- [註冊連結、測試管理平台](https://ec-course-api.hexschool.io/)\n- [API 文件](https://hexschool.github.io/ec-courses-api-swaggerDoc/)\n\n## 使用技術\n\n- [Vite](https://vitejs.dev/)\n- [React](https://react.dev/)\n\n## 開發環境設置\n\n建議使用 [VSCode](https://code.visualstudio.com/) 搭配 [ES7+ React/Redux/React-Native snippets](https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets)\n\n## 快速開始\n\n**專案設置（Project setup）**\n\n將專案複製到本地端\n\n```sh\n$ git clone https://github.com/happyloa/Hex2024-React-Training-Week4.git\n```\n\n套件安裝\n\n```sh\n$ cd hex2024-react-training-week4\n$ npm install\n```\n\n**執行專案（Start the server）**\n\n```sh\n$ npm run dev\n```\n\n在瀏覽器上輸入\n\n```\nhttp://localhost:5173/\n```\n\n即可在本地端預覽專案\n\n## 專案結構\n\n位於 `src`\n\n結構說明\n\n```\nsrc\n├── App.jsx                           負責發出 http 請求並透過 props 傳遞結果給子元件的主要元件\n└── main.jsx                          React 的主要元件\n```\n\n## 元件檔案（Components）\n\n位於 `src/components` 與 `src/assets`\n\n結構說明\n\n```\nsrc/components\n├── Login.jsx                         登入表單\n├── ProductList.jsx                   商品列表\n├── Pagination.jsx                    分頁元件\n├── AddNewModal.jsx                   新增商品 Modal\n├── EditModal.jsx                     編輯商品 Modal\n├── DeleteModal.jsx                   刪除商品 Modal\n└── ProductModal.jsx                  Modal 父元件，依照狀態來呈現對應的 Modal\n```\n\n```\nsrc/assets\n└── style.css                         網站整體的樣式設定\n```\n\n## 靜態檔案\n\n位於 `public`\n\n結構說明\n\n```\npublic\n├── CNAME                            網站的 DNS CNAME 紀錄\n└── favicon.ico                      網站 favicon\n```\n\n## 使用的套件 \u0026 工具\n\n- [axios](https://axios-http.com/)\n- [Bootstrap](https://getbootstrap.com/)\n- [gh-pages](https://www.npmjs.com/package/gh-pages)\n- [ChatGPT 4o](https://openai.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week4/lists"}