/swapi-world-app

A swapi app, with resource loading, error notification, caching, persisted state, routing, bookmark and clean code.

Primary LanguageTypeScript

swapi-world-app

This is an app bootstrapped using create-react-app and it shows data fetching from an API, data caching, state persistance, data display and presentation. It is responsive, mobile friendly and also shows url book mark functionality.

Getting started

npm start

Start app like every react app, running the following command:

npm run start

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

npm test

Launches the test runner in the interactive watch mode.

npm test:ci

Launches the test coverage in an interactive mode.

Usage

The app on load shows a dashboard of planets, people and starships. Each planet, person or starship on the dashboards can be added to a favorite list, on favorites views. And on click of a category (planet, person or starship) on the dashboards a user is routed to a category details view. All pages (views) are bookmarkable and data are persisted accross sessions.

More information

See swapi-world-app

See Github.

Thank you

A warm thank you to SWAPI - The Star Wars API that provided a free API for this app.

See SWAPI.