{"id":21675634,"url":"https://github.com/emptyshop/reactrestapiclient","last_synced_at":"2026-04-07T08:32:34.482Z","repository":{"id":262345853,"uuid":"886954686","full_name":"EmptyShop/ReactRestApiClient","owner":"EmptyShop","description":"Contact List Client (CRUD \u0026 REST API) (React Implementation)","archived":false,"fork":false,"pushed_at":"2025-03-04T19:56:00.000Z","size":65423,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T06:04:46.867Z","etag":null,"topics":["api-rest","bootstrap5","react"],"latest_commit_sha":null,"homepage":"","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/EmptyShop.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-11-11T23:03:07.000Z","updated_at":"2025-03-04T19:56:03.000Z","dependencies_parsed_at":"2025-06-12T03:03:54.827Z","dependency_job_id":"f57824f2-6bac-48bc-8f5d-dad66e6b0098","html_url":"https://github.com/EmptyShop/ReactRestApiClient","commit_stats":null,"previous_names":["emptyshop/reactrestapiclient"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EmptyShop/ReactRestApiClient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmptyShop%2FReactRestApiClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmptyShop%2FReactRestApiClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmptyShop%2FReactRestApiClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmptyShop%2FReactRestApiClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmptyShop","download_url":"https://codeload.github.com/EmptyShop/ReactRestApiClient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmptyShop%2FReactRestApiClient/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264403796,"owners_count":23602620,"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":["api-rest","bootstrap5","react"],"created_at":"2024-11-25T14:09:56.139Z","updated_at":"2026-04-07T08:32:34.399Z","avatar_url":"https://github.com/EmptyShop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReactRestApiClient\nCliente de API Rest (React)\n\nEste proyecto lo hice como parte de un conjunto de aplicaciones que consumen una API que programé en Python para las operaciones básicas (CRUD) de una lista de contactos: [Contact List App](https://github.com/EmptyShop/FlaskSqlAlchemyApp). Este proyecto (ReactRestApiClient) es un cliente para Web, codificado en React. La UI contiene una tabla con la lista de contactos registrados. Un contenedor de campos de edición (correspondientes a nombre, email y teléfono) se accede a través de los botones para **Agregar** y **Editar** contactos.\n\n# Cómo lo Hice\n\n## En este proyecto utilicé:\n\n  * React 18.3.1\n  * React Router 6.27.0\n  * Bootstrap 5.3.3\n  * Bootstrap-icons 1.11.3\n\n## Lo implementé así:\n  * En el archivo `index.js` agregué la ruta para el componente principal `\u003cListado /\u003e`:\n    ```sh\n    const router = createBrowserRouter([\n      {\n        path: \"/\",\n        element: \u003cListado /\u003e,\n        errorElement: \u003cErrorPage /\u003e,\n      },\n    ]);\n    ```\n  * En el componente `Listado` contenido en el archivo `components/listado.js` tengo dos contenedores, uno para la tabla con los datos registrados y otro para los campos de edición correspondientes a las acciones de **Agregar** y **Actualizar**. Este segundo contenedor es un `\u003cdiv\u003e` modal que aparece sólo para editar los campos. Su **id** es `modalContactos`.\n  * Utilizo `fetch()` para las operaciones REST.\n  * Utilizo `useEffect()` para cargar la lista de contactos automáticamente al cargar la aplicación.\n  * Para actualizar la UI y el modelo de datos automáticamente, utilizo `useState()`.\n\n## La ayuda que utilicé:\nPara este proyecto me basé en un video tutorial que muestra cómo consumir servicios Restful con React. Yo lo adapté a mi propia API y además me apoyé en información complementaria:\n\n* [CRUD en React consumiendo una API](https://www.youtube.com/watch?v=fgQHjMotDPk)\n* [Learn React](https://es.react.dev/learn)\n* [Tutorial de React](https://www.tutorialesprogramacionya.com/reactya/index.php?inicio=0)\n* [How to Fetch API Data in React](https://www.freecodecamp.org/news/how-to-fetch-api-data-in-react/)\n* [React Router | Tutorial](https://reactrouter.com/en/main/start/tutorial)\n* [How to use Bootstrap Icons in React](https://www.geeksforgeeks.org/how-to-use-bootstrap-icons-in-react/)\n\n# Lo que sigue\nEl alcance de este proyecto es comparar el desempeño y las implementaciones de cada versión de app cliente para consumo de servicios Restful que tengo en este repositorio ([Angular](https://github.com/EmptyShop/AngularRestApiClient), React, [Vue](https://github.com/EmptyShop/VueRestApiClient) y [Kotlin](https://github.com/EmptyShop/KotlinRestApiClient)). Por lo que no tengo planeado agregar o modificar funcionalidades.\n\nSiéntete libre de comentar y sugerir cosas para esta app.\n\n# Documentación Autogenerada por React:\n\n# Getting Started with Create React App\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\\\nOpen [http://localhost:3000](http://localhost:3000) to view it in your browser.\n\nThe page will reload when you make changes.\\\nYou may also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\\\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\\\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\\\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can't go back!**\n\nIf you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.\n\nYou don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)\n\n### Analyzing the Bundle Size\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)\n\n### Making a Progressive Web App\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)\n\n### Advanced Configuration\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)\n\n### Deployment\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)\n\n### `npm run build` fails to minify\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femptyshop%2Freactrestapiclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femptyshop%2Freactrestapiclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femptyshop%2Freactrestapiclient/lists"}