This is a programming exercise that utilizes the NASA API to download images (https://api.nasa.gov/).
- Visual Studio 2022
- Git
- NASA API Key
- Docker (optional)
- Add an
ApiKey
property in yoursecrets.json
file (Solution Explorer > NasaService > right-click > Manage User Secrets), and input the API key you generated after creating your NASA account. - Build and run the solution.
- Images by default will download to
/app/images
. If you would like to change this behavior, modify theCoreOptions:ImageSaveLocation
key inappsettings.json
. - If you want to ingest a pre-downloaded NASA JSON file containing Mars Rover image metadata (i.e. instead of using the API, particularly during testing), supply a
FilePath
value under theNasaFileOptions
node. If this value is blank, the app will use the API.
- Before using
docker-compose up
, you will need to put anAPIKEY=xxyyzz
line in the.env
file in the repository root (i.e. in the same directory as this readme file). - Once you've added the line, run
docker-compose up
.