{"id":24873746,"url":"https://github.com/happyloa/hex2024-react-training-week5","last_synced_at":"2026-04-12T17:03:30.064Z","repository":{"id":274006129,"uuid":"921604729","full_name":"happyloa/Hex2024-React-Training-Week5","owner":"happyloa","description":"六角 2024 React 作品實戰冬季班第五週作業 - 進階語法介紹","archived":false,"fork":false,"pushed_at":"2025-01-25T11:55:15.000Z","size":396,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T06:17:15.837Z","etag":null,"topics":["axios","bootstrap5","components","gh-pages","http-requests","json","jsx","map","prop-types","react","react-hook-form","react-loading","soc","swagger-ui","validate-js","vite"],"latest_commit_sha":null,"homepage":"http://hex2024-react-training-week5.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-24T09:08:13.000Z","updated_at":"2025-01-25T11:55:10.000Z","dependencies_parsed_at":"2025-01-24T10:31:50.470Z","dependency_job_id":null,"html_url":"https://github.com/happyloa/Hex2024-React-Training-Week5","commit_stats":null,"previous_names":["happyloa/hex2024-react-training-week5"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happyloa%2FHex2024-React-Training-Week5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/happyloa","download_url":"https://codeload.github.com/happyloa/Hex2024-React-Training-Week5/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245760901,"owners_count":20667893,"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","http-requests","json","jsx","map","prop-types","react","react-hook-form","react-loading","soc","swagger-ui","validate-js","vite"],"created_at":"2025-02-01T06:17:17.865Z","updated_at":"2026-04-12T17:03:30.022Z","avatar_url":"https://github.com/happyloa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://i.imgur.com/L3B9eZO.png)\n\n# 六角 2024 React 作品實戰冬季班第五週作業 - 進階語法介紹\n\n- [線上部署連結](http://hex2024-react-training-week5.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-Week5.git\n```\n\n套件安裝\n\n```sh\n$ cd hex2024-react-training-week5\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）\u0026 整體樣式\n\n位於 `src/component` 與 `src/assets`\n\n結構說明\n\n```\nsrc/component\n├── Cart.jsx                          購物車，使用 Offcanvas 來製作\n├── Pagination.jsx                    分頁\n├── PlaceOrderForm.jsx                填寫訂單資訊表單\n├── ProductDetailModal.jsx            商品資訊 Modal，有加入購物車功能\n└── ProductList.jsx                   商品列表，可以查看商品資訊或加入購物車\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- [prop-types](https://www.npmjs.com/package/prop-types)\n- [react-hook-form](https://react-hook-form.com/)\n- [react-loading](https://www.npmjs.com/package/react-loading)\n- [validate.js](https://validatejs.org/)\n- [ChatGPT 4o](https://openai.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappyloa%2Fhex2024-react-training-week5/lists"}