{"id":18423227,"url":"https://github.com/cesarolvr/react-gatsby-github-api-app","last_synced_at":"2025-04-07T15:32:33.390Z","repository":{"id":73623881,"uuid":"537892074","full_name":"cesarolvr/react-gatsby-github-api-app","owner":"cesarolvr","description":"A frontend aplication integrating with Github's API: https://cesar-oliveira-web.vercel.app/","archived":false,"fork":false,"pushed_at":"2022-10-26T16:40:03.000Z","size":17724,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T20:26:02.290Z","etag":null,"topics":["cypress","hooks-api-react","jest","react-hook-form","reactjs","sass","toastify-js","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://cesar-oliveira-web.vercel.app","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/cesarolvr.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-09-17T18:08:19.000Z","updated_at":"2024-10-27T01:34:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a9797d9-c8f0-4e00-8d38-6bce9465a28f","html_url":"https://github.com/cesarolvr/react-gatsby-github-api-app","commit_stats":null,"previous_names":["cesarolvr/react-gatsby-github-api-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarolvr%2Freact-gatsby-github-api-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarolvr%2Freact-gatsby-github-api-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarolvr%2Freact-gatsby-github-api-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarolvr%2Freact-gatsby-github-api-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cesarolvr","download_url":"https://codeload.github.com/cesarolvr/react-gatsby-github-api-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247679839,"owners_count":20978137,"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":["cypress","hooks-api-react","jest","react-hook-form","reactjs","sass","toastify-js","typescript","vercel"],"created_at":"2024-11-06T04:36:16.704Z","updated_at":"2025-04-07T15:32:33.382Z","avatar_url":"https://github.com/cesarolvr.png","language":"TypeScript","readme":"\n## Just testing Github public API\nThis test consists of a page with 2 major components: one to search data in the Github API and another to render the result.\n\n### Demo\nhttps://cesar-oliveira-web.vercel.app/\n\n### What was used\n\n- **React** - Because it's interface library I have more knowledge/experience.\n- **Gatsby** - To generate static files and serve it as a SSG application. I choose this approach because it would be a simple page and I would like it to be fast.\n- **TypeScript** - To type the code.\n- **React Context** - To create a \"store\" and feed any component in application without cascade props manually.\n- **React Hooks** - To be more simple and create a stateless environment.\n- **SASS** - As a styles pre-processor.\n- **react-hook-form** - To abstract form states for me. I could do it manually, but RHF it's a lightweight and very simple library, so worth it.\n- **react-toastify** - To show the error message. Only because it's simple and pretty.\n- **react-helmet** - To do some interactions in the browser tab.\n- **Jest** - To run my tests pipeline and create some unit tests.\n- **Testing Library** - To have more possibilities when testing the UI.\n- **Cypress** - To create a E2E test\n- **GitHub Actions** - To run the tests automatically when updating main or opening new PR.\n- **Vercel** - To deploy and serve.\n\n### Getting started\n\n**Run:**\n```javascript\nyarn\nyarn start\n```\nThis will start application in development mode.\n\n**Build and serve:**\n```javascript\nyarn build\nyarn serve\n```\nThis will generate static files and serve in a local server.\n\n**Run the tests:**\nThe tests pipeline will be triggered automatically when you push the branch `main` in GitHub. But it's also possible to run them locally.\n\n*Unit and component tests:*\n```shellscript\nyarn test:jest\n```\n*E2E test:*\n```shellscript\ntest:cypress\n```\n\n***Extra**: Check the tests coverage:*\n```shellscript\nyarn coverage\n```\n\n**How to deploy new version:**\nJust push in the branch `main`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarolvr%2Freact-gatsby-github-api-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesarolvr%2Freact-gatsby-github-api-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarolvr%2Freact-gatsby-github-api-app/lists"}