{"id":27603210,"url":"https://github.com/christianjtr/basic-react-json-graphql-tryout","last_synced_at":"2026-04-11T03:34:45.548Z","repository":{"id":287022668,"uuid":"959776410","full_name":"christianjtr/basic-react-json-graphql-tryout","owner":"christianjtr","description":"This product page showcases data fetched dynamically using a mocked GraphQL server. Experience seamless data loading and interactive elements","archived":false,"fork":false,"pushed_at":"2025-04-09T15:17:07.000Z","size":5067,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T19:09:23.536Z","etag":null,"topics":["assessment","css","cssmodules-react","graphql","nextjs","reactjs","typescript"],"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/christianjtr.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":"2025-04-03T10:36:41.000Z","updated_at":"2025-05-06T18:56:53.000Z","dependencies_parsed_at":"2025-04-22T19:14:00.578Z","dependency_job_id":"34ed7c8d-8033-40aa-a007-1fc22ac12904","html_url":"https://github.com/christianjtr/basic-react-json-graphql-tryout","commit_stats":null,"previous_names":["christianjtr/basic-react-json-graphql-tryout"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/christianjtr/basic-react-json-graphql-tryout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianjtr%2Fbasic-react-json-graphql-tryout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianjtr%2Fbasic-react-json-graphql-tryout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianjtr%2Fbasic-react-json-graphql-tryout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianjtr%2Fbasic-react-json-graphql-tryout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christianjtr","download_url":"https://codeload.github.com/christianjtr/basic-react-json-graphql-tryout/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianjtr%2Fbasic-react-json-graphql-tryout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31668049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["assessment","css","cssmodules-react","graphql","nextjs","reactjs","typescript"],"created_at":"2025-04-22T19:13:55.748Z","updated_at":"2026-04-11T03:34:45.535Z","avatar_url":"https://github.com/christianjtr.png","language":"TypeScript","readme":"# Product page consuming data from a mocked GraphQL server\n\nThis tryout aims to create a basic product page by fetching data from a mocked GraphQL server.\n\n\u003e [!NOTE]\n\u003e\n\u003e -   ❤️ Feel free to add any improvements or suggestions you consider.\n\n1. [Goals](#001)\n2. [Tech Stack](#002)\n3. [Installation and running the project](#003)\n4. [Samples](#004)\n5. [Dev notes](#005)\n6. [Next Steps](#006)\n\n\u003ca name=\"001\"\u003e\u003c/a\u003e\n\n### 🎯 Goals\n\n-   Meet the design given (File: design.jpg).\n-   Consume data from GraphQL's server (Get product's data).\n-   Use TypeScript.\n-   Responsive UI.\n-   **Features**\n    -   Select quantity of the products.\n    -   Add products to a shopping cart.\n\n\u003ca name=\"002\"\u003e\u003c/a\u003e\n\n### Tech Stack\n\nThis conceptual test has been developed using the following technologies:\n\n-   **Front-end**\n    -   [React](https://react.dev/)\n    -   [NextJS](https://nextjs.org/)\n    -   [TypeScript](https://www.typescriptlang.org/)\n    -   [Yarn](https://classic.yarnpkg.com/en/)\n-   **GraphQL ecosystem**\n    -   [json-graphql-server](https://www.npmjs.com/package/json-graphql-server) (Server)\n    -   [graphql-request](https://www.npmjs.com/package/graphql-request) (Client)\n-   **Tests**\n    -   [Jest](https://jestjs.io/)\n\n\u003ca name=\"003\"\u003e\u003c/a\u003e\n\n### Installation and running the project\n\nThe project requires:\n\n-   [NodeJS](https://nodejs.org/)\n\n**Clone the repository:**\n\n```shell\ngit clone https://github.com/christianjtr/basic-react-json-graphql-tryout.git\n```\n\n**Scripts:**\n\nBefore executing these scripts, you must run **yarn install** in the directory you just downloaded/cloned the codebase. _Other scripts are in package.json file. Also, you may consult the CHALLENGE.md file_.\n\n```shell\n# Start the development environment\n\u003e yarn dev\n\n# Run unit tests\n\u003e yarn test\n\n```\n\n\u003ca name=\"004\"\u003e\u003c/a\u003e\n\n### Samples\n\n1. Product page\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/christianjtr/basic-react-json-graphql-tryout/blob/main/samples/product_page.gif\"/\u003e\n\u003c/p\u003e\n\n\u003ca name=\"005\"\u003e\u003c/a\u003e\n\n### Dev notes\n\nTasks done before starting the project:\n\n-   Fixed `yarn.lock` file which was corrupted.\n    -   Deleting it and running `yarn install --check-files`.\n-   Added missing types `yarn add --dev @types/react`.\n-   Adapted `package.json` file.\n-   Researching a **lightweight graphQL client**.\n-   Checked mocked data integrity.\n-   Moved routes to an appropiate convention (A redirection was put in place)\n    -   Previous: `/product`\n    -   Current: `/products/{ID}`\n-   Figma usage to somehow determine size of UI elements and spacing.\n\n\u003ca name=\"006\"\u003e\u003c/a\u003e\n\n### Next steps\n\n-   Upgrade project dependencies\n    -   Bump React version.\n    -   Bump NextJS version.\n    -   Other relevant libraries like testing ones.\n-   As the project gets larger, we should investigate a robust state management solution.\n    -   Redux Toolkit.\n    -   Zustand.\n    -   Others.\n-   Pages\n    -   Not found page.\n    -   Loading page or component.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianjtr%2Fbasic-react-json-graphql-tryout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristianjtr%2Fbasic-react-json-graphql-tryout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianjtr%2Fbasic-react-json-graphql-tryout/lists"}