React Star Wars API (SWAPI) Search Application
The goal of this assignment is to build a small React application that lets you search and display information from the Star Wars movies (no knowledge of SW is required). The data needed will be queried from SWAPI (Star Wars API) which is an open testing API.
The app should consist of a front page with a centered search box where you can type a search string and get matching results. Clicking on a result should route to a new page with the search box on top and details about the query underneath.
Reactframework (with Typescript) for the overall application development;SASSstyle pre-processor to build the needed application styles;Axiosto communicate with the backend API;DotEnvto load project environment variables;React-QuerybyTanStackto retrieve and manage data inside the application; performed operation;
Prettierfor code formatting;Webpackto bundle the application and serve it in development mode;Log4Brainsto manage Architectural Decision Record (ADR) and generate static HTML knowledge base;Statoscopeto generate reports about the application;
Jestjavascript testing framework;React Testing Librarytesting framework for working with React components;
From the project root folder, please execute the following commands in a terminal window:
npm i
npm start
- The
Searchcomponent could have a dropdown menu with search terms suggestions; - The
Searchresults page does not have pagination over the results, what could improve the user experience; - Apply
useMemoand / oruseCallbackwhere needed; - Implement a caching system for the result item preview instead of always consulting the API endpoint for data;



