{"id":22261855,"url":"https://github.com/jsonfm/fakestore","last_synced_at":"2025-08-16T16:45:11.330Z","repository":{"id":137719862,"uuid":"553658154","full_name":"jsonfm/fakestore","owner":"jsonfm","description":"🚀 A vanilla js products store.","archived":false,"fork":false,"pushed_at":"2022-10-18T15:29:36.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T12:30:45.756Z","etag":null,"topics":["js"],"latest_commit_sha":null,"homepage":"https://jsonfm.github.io/fakestore/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsonfm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-10-18T14:57:38.000Z","updated_at":"2022-10-18T15:28:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"0615fcf5-13d4-4089-8444-4e508f27c3c2","html_url":"https://github.com/jsonfm/fakestore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffakestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffakestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffakestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffakestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsonfm","download_url":"https://codeload.github.com/jsonfm/fakestore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245472777,"owners_count":20621168,"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":["js"],"created_at":"2024-12-03T09:14:39.126Z","updated_at":"2025-03-25T13:42:03.021Z","avatar_url":"https://github.com/jsonfm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FakeStore.shop\n\nFakeStore somos comercio en línea con una gran cantidad de productos a comercializar. \n\n### Instalación\n\n```\nnpm install\n```\n\n### Desarrollo\n\n```\nnpm run dev\n```\n\n### Deploy\n\n```\nnpm run deploy\n```\n\n### Debug\n\n- http://localhost:5173/fakestore/\n\n### Documentación\n\n- Variable llamada $app donde haremos render de nuestra app.\n- Elemento del DOM que será Observado.\n- Constante 'API': Utilizamos la FakeAPI de Platzi.\n\n```javascript\nconst $app = document.getElementById(\"app\");\nconst $observe = document.getElementById(\"observe\");\nconst API = \"https://api.escuelajs.co/api/v1/products\";\n```\n\nFunción llamada 'getData' que se encarga de hacer Fetch a una API y debe de construir un elemento nuevo en el DOM.\n\n```javascript\nconst getData = (api) =\u003e {\n  const products = await fetch(api).then(res =\u003e res.json());\n  ...\n};\n```\n\nFunción encargada de obtener de los Productos.\n\n```javascript\nconst loadData = () =\u003e {\n  getData(API);\n};\n```\n\nIntersection Observer\n\n```javascript\nconst intersectionObserver = new IntersectionObserver(\n  (entries) =\u003e {\n    // logic...\n  },\n  {\n    rootMargin: \"0px 0px 100% 0px\",\n  }\n);\n\nintersectionObserver.observe($observe);\n```\n\n## RETO\n\n- [x] API fetch actualizada\n- [x] Renderizado de productos\n- [] Paginación con LocalStorage\n- [x] Configuración IntersectionObserver API\n- [x] Empaquetador Vite.js Añadido\n- [x] Depliegue en GitHub Pages\n\n\n### Licencia\n\njs-challenge se lanza bajo la licencia [MIT](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonfm%2Ffakestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsonfm%2Ffakestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonfm%2Ffakestore/lists"}