{"id":18709051,"url":"https://github.com/baguilar6174/react-simple-auth-app","last_synced_at":"2026-04-11T14:04:04.836Z","repository":{"id":137806968,"uuid":"495531225","full_name":"baguilar6174/react-simple-auth-app","owner":"baguilar6174","description":"Este proyecto contiene una simple aplicación para realizar la autenticación (login) en React usando Redux","archived":false,"fork":false,"pushed_at":"2024-11-21T16:12:25.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-28T07:42:09.868Z","etag":null,"topics":["axios","bootstrap","reactjs","redux","vite"],"latest_commit_sha":null,"homepage":"","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/baguilar6174.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":"2022-05-23T18:38:05.000Z","updated_at":"2024-11-21T16:12:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"79f3632b-9357-49c5-b57f-343b407c9512","html_url":"https://github.com/baguilar6174/react-simple-auth-app","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/baguilar6174%2Freact-simple-auth-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baguilar6174%2Freact-simple-auth-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baguilar6174%2Freact-simple-auth-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baguilar6174%2Freact-simple-auth-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baguilar6174","download_url":"https://codeload.github.com/baguilar6174/react-simple-auth-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239571580,"owners_count":19661165,"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","bootstrap","reactjs","redux","vite"],"created_at":"2024-11-07T12:26:09.405Z","updated_at":"2025-12-30T21:50:22.559Z","avatar_url":"https://github.com/baguilar6174.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Simple Auth App\n\nOnce the project has been cloned, navigate to the application directory and run the command `yarn` or `npm i` to install all dependencies. For example:\n\n```bash\ncd simple-auth-app/\nyarn\n```\n\nAt this point, you can test the correct execution of your application. If you are using Yarn, run the following command:\n\n```bash\nyarn run dev\n```\n\n## Dependencies used\n\n* _axios_: Library for making HTTP requests.\n* _eslint-plugin-react-hooks_: Helps catch errors and provides guidance when coding hooks.\n* _redux_: State management library for the application.\n* _sass_: Enables the use of SASS instead of plain CSS (if you install this extension, make sure to change your file extensions from `.css` to `.scss` and update the import paths in `App.tsx` and `main.tsx` accordingly).\n* _bootstrap_: CSS framework.\n* _react-hook-form_: Library for handling and validating forms.\n* _react-router-dom_: Routing library for React.\n\n## Directory Structure\n\nIn my projects, I usually follow this directory structure:\n\n```\n├── src/\n    ├── assets/\n    │   ├── images/\n    │   ├── icons/\n    │   ├── fonts/\n    │   ├── ...\n    ├── components/\n    │   └── Component1.component.tsx\n    ├── data/\n    ├── hooks/\n    ├── layout/\n    ├── models/\n    ├── pages/\n    │   └── page1/\n    │       ├── components/\n    │       └── Page1.page.tsx\n    ├── redux/\n    │   ├── ...\n    │   ├── store.tsx\n    ├── routes/\n    │   ├── routes.tsx\n    ├── services/\n    ├── utilities/\n\t\t...\n    ├── App.scss\n    ├── App.tsx\n    ├── favicon.ico\n    ├── index.scss\n    └── main.tsx\n...\n```\n\n1. The `assets` directory contains all multimedia resources such as images, fonts, and icons. It can also include files for application internationalization in an `i18n` subdirectory.\n2. The `components` directory contains all global components of your application, such as custom alerts, loaders, or pagination components.\n3. The `data` directory holds constants that can be used across your application, such as routes or enumerations.\n4. The `hooks` directory contains custom hooks that abstract logic from your application.\n5. The `layout` directory contains the main elements of your application, typically including four parts: Header, Sidebar, Footer, and Skeleton.\n6. The `models` directory contains the models used in your application. Since we are using TypeScript, it is essential to maintain proper typing throughout the application.\n7. The `pages` directory holds the pages of your application. I usually create a subdirectory for each set of related pages (e.g., a `users` directory would contain `UsersList.page.tsx`, `UsersCreate.page.tsx`, and `UserDetails.page.tsx`). Additionally, you can create a `components` subdirectory for shared components among these pages.\n8. The `redux` directory contains the global state configuration for your application, which will be discussed later.\n9. The `routes` directory contains a file defining the application routes.\n10. The `services` directory holds the axios configuration for HTTP requests, where you can add interceptors to include headers or handle errors better.\n11. Finally, the `utilities` directory is used for storing global utility functions, such as currency conversion or date formatting functions.\n\n## Project Status\n\nCurrently, this project includes a simple (fake) login system using localStorage. It can be extended to use an authentication API.\n\n## Stay in touch\n\n- Website - [www.bryan-aguilar.com](https://www.bryan-aguilar.com/)\n- Medium - [baguilar6174](https://baguilar6174.medium.com/)\n- LinkedIn - [baguilar6174](https://www.linkedin.com/in/baguilar6174)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaguilar6174%2Freact-simple-auth-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaguilar6174%2Freact-simple-auth-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaguilar6174%2Freact-simple-auth-app/lists"}