/swapi-home

Implementation of Star Wars API using React

Primary LanguageTypeScript

Star Wars Characters Search

How to use

  • Type the character name.
  • Wait for the results.
  • If there is no character with the name typed, an error message will show.
  • If there are on or more characters with the name typed, the list of characters will show.

Functional requirements

  • The list of characters must show maximum of 5 results
  • Try to minimize API usage
  • Create 3 pages (Home, Characters, About)
  • Application must have a header, navigation and footer

Technical requirements

  • Use React to create the application

Setup

Clone this repository and then install the dependencies with npm install.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

Libs

  • react-query
  • react-router-dom
  • styled-components