Skip to content

refactor-everything/nasa_exercise

Repository files navigation

NASA Programming Exercise

This is a programming exercise that utilizes the NASA API to download images (https://api.nasa.gov/).

Prerequisites

  • Visual Studio 2022
  • Git
  • NASA API Key
  • Docker (optional)

Build Instructions

  • Add an ApiKey property in your secrets.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 the CoreOptions:ImageSaveLocation key in appsettings.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 the NasaFileOptions node. If this value is blank, the app will use the API.

Docker Compose

  • Before using docker-compose up, you will need to put an APIKEY=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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published