{"id":17829631,"url":"https://github.com/guidefari/redux-ecommerce","last_synced_at":"2026-04-28T12:06:29.012Z","repository":{"id":241617460,"uuid":"807221321","full_name":"guidefari/redux-ecommerce","owner":"guidefari","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-11T20:56:14.000Z","size":572,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T07:47:07.736Z","etag":null,"topics":["hono","react","redux","redux-toolkit","sst"],"latest_commit_sha":null,"homepage":"https://d27ipf1vpwmgeh.cloudfront.net/","language":"TypeScript","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/guidefari.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-05-28T17:27:41.000Z","updated_at":"2024-06-09T16:29:19.000Z","dependencies_parsed_at":"2024-06-07T19:03:38.471Z","dependency_job_id":"1a6bbdba-e570-4ba4-a862-22398824c0bc","html_url":"https://github.com/guidefari/redux-ecommerce","commit_stats":null,"previous_names":["guidefari/redux-ecommerce"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guidefari/redux-ecommerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fredux-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fredux-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fredux-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fredux-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guidefari","download_url":"https://codeload.github.com/guidefari/redux-ecommerce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fredux-ecommerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["hono","react","redux","redux-toolkit","sst"],"created_at":"2024-10-27T19:16:47.354Z","updated_at":"2026-04-28T12:06:28.996Z","avatar_url":"https://github.com/guidefari.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to run\n- Make sure you have [bun](https://bun.sh/) installed.\n- From the root directory, run:\n\n```bash\nbun install\n```\n## Run server:\n\n```bash\nbun run dev:server\n```\n\n## To run client:\n\nFirst, you want to create a .env file in the `./client` directory.\nYou can copy paste the contents of `./client/.env.example`\n\n```bash\nbun run dev:client\n```\n\n### Sidenote:\nI did development against the live lambdas, I set my vite env variables as seen in `sst.config.ts`\n```ts\nconst web = new sst.aws.StaticSite(\"ViteEcommerce\", {\n\t\t\tpath: \"client/\",\n\t\t\tbuild: {} ,\n\t\t\tenvironment: {\n\t\t\t\tVITE_API_BASE_URL: hono.url,\n\t\t\t},\n\t\t});\n```\n\n## I set up a git pre-commit hook\n\nI set up a simple pre-commit hook on my laptop.\nBash script located at: `./git/hooks/pre-commit`:\n\n```sh\n#!/bin/sh\n\nset -eu\n\nnpx @biomejs/biome check --staged --files-ignore-unknown=true --no-errors-on-unmatched\n```\n\n\n## Architectural choices\n- Switched to monorepo for quicker iteration between FE \u0026 BE.\n  - I strongly considered going with NextJS, my default for fullstack TS apps.\n- Deployed to AWS via [SST](https://ion.sst.dev/).\n\n\n## Resources\n- [Designs](https://www.figma.com/design/eNV3PGUxZz3EvvpnJplCAD/E-Commerce-UI-Kit-(Community)?node-id=0-1\u0026t=AMzc6NsEyc4y7M9q-1)\n- Mark Erikson \u0026 Jason Lengstorf:\n  - [Learn modern redux](https://www.youtube.com/watch?v=9zySeP5vH9c\u0026pp=ygUcbWFyayBlcmlrc29uIGphc29uIGxlbmdzdG9yZg%3D%3D)\n  - [Redux in 2023](https://www.youtube.com/watch?v=MLbXjCddf3A\u0026pp=ygUcbWFyayBlcmlrc29uIGphc29uIGxlbmdzdG9yZg%3D%3D)\n\n---\n\n# Todo\n- ✅fetch data from frontend and put in a basic UI list.\n- ✅Might switch to tailwind, haven't used MUI in years💀\n- ✅ cart should probably be in local storage. pass in the entire object as action, plus quantity\n- ✅ likely a good time for some unit tests. add to cart, remove from cart\n- [ ] [Async error handling, macro level](https://redux-toolkit.js.org/rtk-query/usage/error-handling#handling-errors-at-a-macro-level)\n- [ ] When you click on a category on home screen, you get taken to view products with a pre-selected filter\n  - Also keep this state in the url\n- [ ] Product details modal\n  - Try url state for this one too\n- [ ] UX: Bandcamp inspired checkout modal?\n\n## BE endpoints\n  - ✅List All Products: GET\n    - filter - can be handled on frontend?\n    - sort - can be handled on frontend?\n  - ✅List Featured products: GET\n  - ✅Single Product details: GET, :id\n  - ✅List categories: GET\n  - ✅List All products in category: GET, :id\n  - Checkout: POST\n  - ✅List Discounted Products: GET\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguidefari%2Fredux-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguidefari%2Fredux-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguidefari%2Fredux-ecommerce/lists"}