{"id":20101341,"url":"https://github.com/beautiful-code/growthy_ai","last_synced_at":"2026-05-12T10:31:58.316Z","repository":{"id":230107654,"uuid":"778507585","full_name":"beautiful-code/growthy_ai","owner":"beautiful-code","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-13T22:55:43.000Z","size":396,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T00:59:47.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/beautiful-code.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}},"created_at":"2024-03-27T21:04:58.000Z","updated_at":"2024-04-15T07:10:56.543Z","dependencies_parsed_at":"2024-04-06T04:25:24.047Z","dependency_job_id":"a5c7315c-c26a-45b9-be1d-4e320d45a1ff","html_url":"https://github.com/beautiful-code/growthy_ai","commit_stats":null,"previous_names":["pbpranavk/growthy_reset","beautiful-code/growthy_ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beautiful-code/growthy_ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beautiful-code%2Fgrowthy_ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beautiful-code%2Fgrowthy_ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beautiful-code%2Fgrowthy_ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beautiful-code%2Fgrowthy_ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beautiful-code","download_url":"https://codeload.github.com/beautiful-code/growthy_ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beautiful-code%2Fgrowthy_ai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32934463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-13T17:24:44.255Z","updated_at":"2026-05-12T10:31:58.282Z","avatar_url":"https://github.com/beautiful-code.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Codebase Structure and Practices\n\n## Overview\n\n- **Goal:** Establish a clear, consistent structure and set of practices for developing and maintaining the frontend codebase.\n- **Principle:** Each item (file, component, function) should have a single responsibility and purpose, enhancing the code's understandability, testability, and maintainability.\n\n## Folder Structure\n\nThe project is organized into key directories, each serving a distinct role in the application's architecture:\n\n### 1. Feature\n\n- **Purpose:** Contains all elements specific to a feature of the application (e.g., user authentication, dashboard).\n- **Structure:**\n  - **Component:** UI components specific to this feature, focusing on a single visual element or function.\n  - **Hook:** Custom React hooks encapsulating reusable logic for the feature.\n  - **Models:** Definitions of data structures and types used by this feature.\n  - **Queries:** API queries and data fetching logic for this feature.\n  - **Chains:** AI Prompts related to the feature.\n \n- Example features\n- Guilds\n- Growth Exercise\n\nApproach 2\n- Pages (Pure FE)\n- Domain-Logic (Pure Buiz logic )\n\nExample - Home Page\n- Components\n  - Home.tsx\n  - ExercisesList.tsx\n  - Exercise.tsx\n- queries.ts\n- Home.css\n- utils.ts\n\n- Common\n  - Components\n    - Sidebar.tsx\n\n- Domain-Logic\n  - Exercise.ts\n    - Name\n    - Author\n  - \n\n### 2 Principles\n- React Component is only for view, all non-view logic should be moved to a diff place and imported.\n- \n\n### 3. Common\n\n- **Purpose:** Contains reusable components and hooks not tied to specific features but used across the application, avoiding duplication and fostering consistency.\n- **Structure:**\n  - **Components:** Generic UI components like buttons, modals, form elements, and layout components, designed for flexibility and customization through props.\n  - **Hooks:** Custom React hooks for logic applicable across the application, including managing global state, accessing context, or reusing logic like form validation or data fetching.\n\n\n# Commands\n\n- Running the project: `yarn dev`\n- Building the project: `yarn build`\n- Deploying the project: `firebase deploy`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeautiful-code%2Fgrowthy_ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeautiful-code%2Fgrowthy_ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeautiful-code%2Fgrowthy_ai/lists"}