Tom-linkitup / NasaApiProject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nasa Api Project

This is a simple demo application that collects photos from the public NASA API with two server endpoints.

Mars Rover Photos

How to use

Prerequisites

  • Maven
  • Java 11
  • Docker

Running the JAR directly

  • Build and run with Maven from the root directory of the project:

./mvnw clean package && java -jar target/MarsRoverApi-0.0.1-SNAPSHOT.jar

OR

Running as a Docker Container

  • Build local docker image

docker build -t marsrover .

  • Run the image

docker run -p 8080:8080 --name marsrover marsrover

Type http://localhost:8080 in your browser.

Choose the Rover and camera and sol days and finally submit

It will return photos from Rovers

About


Languages

Language:Java 57.2%Language:HTML 42.2%Language:Dockerfile 0.6%