Serves application locally on localhost:8080. Auto reloads on file changes.
Runs tests using Jest and React Testing Library. To collect coverage information use npm run coverage
.
Creates the production build of the application. Source maps included.
Lint ts files using AirBnB config as base. Use npm run eslint:fix
to fix autofixable issues.
Lints stylesheets using scss standard config. Use npm run stylelint:fix
to fix autofixable issues.
Use this command to bundle the UI and build a simple static server using express.js.
Run this command and visit localhost:8080 to view the page.
swapi-ts library was used to fetch swapi data. This library has a bug, which creates broken urls, so a dirty hack was introduced in the entrypoint of this app. A PR with a fix for this issue was created here