{"id":23613705,"url":"https://github.com/happyloa/hex2024-react-training-week1","last_synced_at":"2026-04-04T20:33:31.631Z","repository":{"id":269984139,"uuid":"909037807","full_name":"happyloa/Hex2024-React-Training-Week1","owner":"happyloa","description":"六角 2024 React 作品實戰冬季班第一週作業 - 從函式拆解認識設計模式","archived":false,"fork":false,"pushed_at":"2024-12-27T19:24:42.000Z","size":269,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T05:11:58.526Z","etag":null,"topics":["bootstrap5","gh-pages","json","map","react","soc","vite"],"latest_commit_sha":null,"homepage":"http://hex2024-react-training-week1.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,"zenodo":null}},"created_at":"2024-12-27T15:42:50.000Z","updated_at":"2025-01-03T10:29:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"a483067d-0be1-4785-8625-8a0dcd657f3c","html_url":"https://github.com/happyloa/Hex2024-React-Training-Week1","commit_stats":null,"previous_names":["happyloa/hex2024-react-training-week1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/happyloa/Hex2024-React-Training-Week1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/happyloa","download_url":"https://codeload.github.com/happyloa/Hex2024-React-Training-Week1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bootstrap5","gh-pages","json","map","react","soc","vite"],"created_at":"2024-12-27T17:18:51.259Z","updated_at":"2026-04-04T20:33:31.623Z","avatar_url":"https://github.com/happyloa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://i.imgur.com/MUM85bA.png)\n\n# 六角 2024 React 作品實戰冬季班第一周作業 - 從函式拆解認識設計模式\n\n- [線上部署連結](http://hex2024-react-training-week1.worksbyaaron.com/)\n- [作業範例](https://github.com/hexschool/react-training-chapter-2024)\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-Week1.git\n```\n\n套件安裝\n\n```sh\n$ cd hex2024-react-training-week1\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                          引入商品資料與商品列表、商品詳細資訊元件的主要元件\n├── App.css                          全域樣式。引入並使用思源黑體\n└── main.jsx                         React 的主要元件\n```\n\n## 元件檔案（Components）\n\n位於 `src/components`\n\n結構說明\n\n```\nsrc/components\n├── ProductDetail.jsx                商品詳細資料元件\n├── ProductDetail.module.css         商品詳細資料元件的樣式\n├── ProductList.jsx                  商品卡片列表元件\n└── ProductList.module.css           商品卡片列表元件的樣式\n```\n\n## 靜態檔案\n\n位於 `public` 與 `src/data`\n\n結構說明\n\n```\npublic\n├── CNAME                            網站的 DNS CNAME 紀錄\n└── favicon.ico                      網站 favicon\n```\n\n```\nsrc/data\n└── products.json                    所有商品靜態資料\n```\n\n## 使用的套件 \u0026 工具\n\n- [gh-pages](https://www.npmjs.com/package/gh-pages)\n- [TinyPNG](https://tinypng.com/)\n- [ChatGPT 4o](https://openai.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week1/lists"}