Rover / Exports
🚀 Exploring images from the Perseverance rover on the web and command line
To build the project, make sure to first install a recent version of Node.js and the Yarn package manager. Once installed, fetch the needed dependencies:
yarn install
Next, build the project:
yarn build
To run the set suite, do:
yarn test
The project has two available front ends: A web application and a command line interface. For programmatic usage, check out the shared @rover/lib
module.
To use the web application, do:
yarn workspace @rover/app start
The web application exposes 3 endpoints:
-
/
Show a carousel of rover images. The transition speed can be adjusted via thespeed
query parameter. -
/latest
Show the latest rover image. -
/:index
Show the specified rover image.
To use the command line interface, do:
yarn workspace @rover/cli rover
The command line interface exposes 3 commands:
-
get-all
Show a carousel of rover images. The transition speed can be adjusted via the--speed
flag. -
get-latest
Show the latest rover image. -
get <index>
Show the specified rover image.