{"id":21129056,"url":"https://github.com/flight/giphy","last_synced_at":"2026-04-08T16:01:29.968Z","repository":{"id":147242053,"uuid":"577936675","full_name":"Flight/giphy","owner":"Flight","description":"Simple React app for GIPHY API","archived":false,"fork":false,"pushed_at":"2022-12-19T09:31:21.000Z","size":4909,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T22:48:57.824Z","etag":null,"topics":["c8","cypress","daisyui","eslint","husky","prettier","react","react-testing-library","storybook","tailwindcss","typescript","vite","vitest"],"latest_commit_sha":null,"homepage":"https://flight.github.io/giphy/","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/Flight.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":"2022-12-13T21:46:55.000Z","updated_at":"2022-12-21T23:24:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"11997df7-46e1-4174-a0a6-300b8f7f02b3","html_url":"https://github.com/Flight/giphy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Flight/giphy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flight%2Fgiphy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flight%2Fgiphy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flight%2Fgiphy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flight%2Fgiphy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flight","download_url":"https://codeload.github.com/Flight/giphy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flight%2Fgiphy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["c8","cypress","daisyui","eslint","husky","prettier","react","react-testing-library","storybook","tailwindcss","typescript","vite","vitest"],"created_at":"2024-11-20T05:14:45.886Z","updated_at":"2026-04-08T16:01:29.956Z","avatar_url":"https://github.com/Flight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Giphy search app\n\nLive url:\n[https://flight.github.io/giphy/](https://flight.github.io/giphy/)\n\n[React](https://reactjs.org) + [Typescript](https://www.typescriptlang.org) + [Tailwind CSS](https://tailwindcss.com) + [daisyUI](https://daisyui.com) + [Storybook](http://storybook.js.org) + [Vite](https://vitejs.dev) + [ESLint](https://eslint.org) + [Prettier](https://prettier.io) + [Husky](https://github.com/typicode/husky) + [Vitest](https://vitest.dev) + [jest-dom (React Testing Library)](https://github.com/testing-library/jest-dom) + [c8](https://github.com/bcoe/c8) + [Cypress](https://www.cypress.io)\n\n![Giphy search app](screenshots/app.png?raw=true)\n\n## Initial setup:\n\n1. Install the node.js\n   https://nodejs.org/en/download/\n\n2. Install the latest version of [pnpm package manager](https://pnpm.io/installation#using-npm)\n   `npm install -g pnpm` or `brew install pnpm`\n\n3. Install the dependencies\n   `pnpm install`\n\n4. Create `.env.local` file in the project root folder with your [GIPHY API key](https://developers.giphy.com/dashboard/?create=true)\n\n   `VITE_GIPHY_API_KEY=YOUR_KEY`\n\n## Running\n\n`pnpm start`\n\n## Storybook\n\nThe solution uses [Storybook](http://storybook.js.org) as the components style guide.\n\n![Giphy search storybook](screenshots/storybook.png?raw=true)\n\nTo run the preview:\n`pnpm storybook`\n\nTo build the production Storybook setup:\n`pnpm build-storybook`\n\nTo run the preview server with the production Storybook build:\n`pnpm preview-storybook`\n\n## Production build\n\n`pnpm build`\n\nTo run the preview server with the production build:\n\n`pnpm preview`\n\n## Testing\n\nLive mode\n`pnpm test`\n\nCoverage check\n`pnpm coverage`\n\nE2E tests\n`pnpm e2e`\nor\n`pnpm e2e:silent` to run in silent mode (on CI, for example)\n\nPre-commit checks\n`pnpm pre-commit`\n\n## Running in Docker:\n\n1. Install [Docker Desktop](https://www.docker.com).\n\n2. Create `.env.local` file in the project root folder with your [GIPHY API key](https://developers.giphy.com/dashboard/?create=true)\n\n   `VITE_GIPHY_API_KEY=YOUR_KEY`\n\n3. Run docker compose:\n\n   `docker-compose up`\n\nNavigate to the exposed urls:\n\n- Main app: [http://localhost:5173/](http://localhost:5173/)\n- Storybook: [http://localhost:6006/](http://localhost:6006/)\n\nTo run the tests inside of the container, first connect to it:\n\n`docker exec -it giphy-frontend-1 \"bash\"`\n\nThen run the needed commands like:\n\n`pnpm test:silent`\n\n## Design decisions\n\n- [Tailwind CSS](https://tailwindcss.com) + [PostCSS](http://postcss.org) for tree-shakable utility classes and minimum amount of hand-written CSS\n- [daisyUI](https://daisyui.com) for the basic components like cards, buttons, selects and inputs\n- [Storybook](http://storybook.js.org) as the components style guide, so the individual components can be build in the sandbox environment\n- [Vite](https://vitejs.dev) for bundling everything (much faster than Webpack)\n- [ESLint](http://eslint.org) + [Prettier](http://prettier.io) for linting and prettifying the codeHusky for pre-commit hooks\n- [Vitest](http://vitest.dev) + [jest-dom (React Testing Library)](https://github.com/testing-library/jest-dom) + [c8](https://github.com/bcoe/c8) for the unit testing\n- [Cypress](http://cypress.io) + [Cypress Testing Library](https://testing-library.com/docs/cypress-testing-library/intro/) for the end-to-end testing\n\n## Good sides of the implementation\n\n- The dummy components and the business logic are completely separated, so the solution is can use [Storybook](http://storybook.js.org) `pnpm storybook`\n- The design is mobile-first, so can be used on any type of the devices\n- The building takes a few seconds\n- The unit-tests run takes 2-3 seconds\n- The E2E tests run takes a few seconds together with production build creation and serving\n\n## Next steps\n\n- Add tags autocomplete\n- Add endless scrolling\n- Add caching of the search results to the local storage\n- Improve test coverage\n- Improve the error handling and connect the [TrackJS](https://trackjs.com) or [Sentry IO](http://sentry.io)\n- Set up CI / CD process. For example, using [GitHub Actions](https://github.com/features/actions) or [Gitlab CI/CD](https://docs.gitlab.com/ee/ci/)\n\n![Giphy search app](screenshots/modal.png?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflight%2Fgiphy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflight%2Fgiphy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflight%2Fgiphy/lists"}