{"id":28240569,"url":"https://github.com/andreros/react-swapi-search-app","last_synced_at":"2025-06-12T08:31:01.721Z","repository":{"id":199769713,"uuid":"671618521","full_name":"andreros/react-swapi-search-app","owner":"andreros","description":"Star Wars API (SWAPI) search engine example application implemented with 2023 latests technologies, methodologies, best practices and frameworks available within the React ecosystem.","archived":false,"fork":false,"pushed_at":"2023-11-07T13:44:15.000Z","size":5090,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T04:11:31.570Z","etag":null,"topics":["2023","example-application","jest","react","react-query","react-testing-library","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-27T18:29:27.000Z","updated_at":"2023-10-24T18:12:05.000Z","dependencies_parsed_at":"2023-10-18T23:15:17.310Z","dependency_job_id":null,"html_url":"https://github.com/andreros/react-swapi-search-app","commit_stats":null,"previous_names":["andreros/react-swapi-search-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreros/react-swapi-search-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreros%2Freact-swapi-search-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreros%2Freact-swapi-search-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreros%2Freact-swapi-search-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreros%2Freact-swapi-search-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreros","download_url":"https://codeload.github.com/andreros/react-swapi-search-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreros%2Freact-swapi-search-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259429654,"owners_count":22856100,"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":["2023","example-application","jest","react","react-query","react-testing-library","typescript"],"created_at":"2025-05-19T04:11:28.765Z","updated_at":"2025-06-12T08:31:01.714Z","avatar_url":"https://github.com/andreros.png","language":"TypeScript","readme":"# react-swapi-search-app\n\nReact Star Wars API [(SWAPI)](https://swapi.dev/) Search Application\n\n## Proposed Solution\n\nThe goal of this assignment is to build a small React application that lets you search and display information from the\nStar Wars movies (no knowledge of SW is required). The data needed will be queried\nfrom [SWAPI (Star Wars API)](https://swapi.dev/)\nwhich is an open testing API.\n\nThe app should consist of a front page with a centered search box where you can type a search string and get matching\nresults. Clicking on a result should route to a new page with the search box on top and details about the query\nunderneath.\n\n## Screenshots\n\n\u003cimg src=\"docs/screenshots/screenshot01.jpg\" width=\"300\" alt=\"Main search\"\u003e\u003cbr/\u003e\n\u003cimg src=\"docs/screenshots/screenshot02.jpg\" width=\"300\" alt=\"Main search\"\u003e\u003cbr/\u003e\n\u003cimg src=\"docs/screenshots/screenshot03.jpg\" width=\"300\" alt=\"Main search\"\u003e\u003cbr/\u003e\n\u003cimg src=\"docs/screenshots/screenshot04.jpg\" width=\"300\" alt=\"Main search\"\u003e\n\n## Application Tech Stack\n\n-   `React` framework (with Typescript) for the overall application development;\n-   `SASS` style pre-processor to build the needed application styles;\n-   `Axios` to communicate with the backend API;\n-   `DotEnv` to load project environment variables;\n-   `React-Query` by `TanStack` to retrieve and manage data inside the application;\n    performed operation;\n\n## Application Support tools\n\n-   `Prettier` for code formatting;\n-   `Webpack` to bundle the application and serve it in development mode;\n-   `Log4Brains` to manage Architectural Decision Record (ADR) and generate static HTML knowledge base;\n-   `Statoscope` to generate reports about the application;\n\n## Application Testing tools\n\n-   `Jest` javascript testing framework;\n-   `React Testing Library` testing framework for working with React components;\n\n## Installation and platform bootstrap\n\nFrom the project root folder, please execute the following commands in a terminal window:\n\n```\nnpm i\nnpm start\n```\n\n## Where to go from here (read it \"further improvements\")\n\n-   The `Search` component could have a dropdown menu with search terms suggestions;\n-   The `Search` results page does not have pagination over the results, what could improve the user experience;\n-   Apply `useMemo` and / or `useCallback` where needed;\n-   Implement a caching system for the result item preview instead of always consulting the API endpoint for data;\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreros%2Freact-swapi-search-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreros%2Freact-swapi-search-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreros%2Freact-swapi-search-app/lists"}