/mars-rover

Primary LanguageTypeScript

Mars Rover Photos

React application to view 4 randomly chosen from one of the existing NASA APIs, more specifically the Mars Rover photos link api and caching per url requested using custom useFetch hook.

Architecture

  • hooks
  • useState
  • useEffect

Scripts

$ npm run dev

$ npm run test

$ npm run build

Run Frontend (recommended docker)

$ docker-compose up

Run Frontend (npm)

$ npm run dev

Run Tests (npm)

$ npm run test

Build Deploy

$ docker build -t marsrover .

preview