#Mars Rover Photo Viewer
A basic photo viewer driven by data from the Mars Rover Photo API
To build the code, follow these steps.
- Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
- It is preferable to build using yarn so please install this if possible. If you do not have access to yarn you can substitute npm in place of yarn in the instructions below
- From the project folder, execute the following command:
yarn install
- To build the code, you can now run:
yarn run build
- You will find the compiled code in the
dist
folder. Copy the index.html and bundle.js file to a webserver to run.
To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:
- To run the tests without a test coverage report being generated
yarn run test
- To run the tests with a test coverage report being generated
yarn run test-coverage
Coverage report can be found in the project directory under:
coverage/lcov-report/index.html
- If you wish to develop this applciation further you will find it useful to run the app via the webpack dev server as it will allow you to "hot deploy" code changes
yarn run serve