Skip to content

Mars Rover Photos is a web application that retrieves photos from the Mars rover using the NASA API

License

Notifications You must be signed in to change notification settings

TheLe0/mars-rover-photos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mars Rover Photos

Build Docker Image Unit Tests Publish on Docker Hub

Mars Rover Photos is a web application that retrieves photos from the Mars rover using the NASA API. The app allows users to specify dates to view images taken by the mars rover on this file. The data is loaded during the database migration process, where it is seeded into the SQLite database. Once the migration is complete, all the data can be viewed on the web page.

image

Configuration

There are three ways to run the application:

  • Locally on your machine
  • In a Docker container (by building the image locally)
  • In a Docker container (by pulling the image from Docker Hub)

Run locally

You need to have installed on your machine the .NET 8 version runtime.

And run the commands on your terminal:

dotnet restore
dotnet build --no-restore
dotnet run

Run on a Docker container (by building the image locally)

You just need to have installed Docker on your machine.

docker build . --file Dockerfile --tag <YOUR-IMAGE-NAME>:<VERSION>
docker run -p 5000:8080 <YOUR-IMAGE-NAME>:<VERSION>

Note: You can replace 'YOUR-IMAGE-NAME' and 'VERSION' with your preferred image name and version values.

Run on a Docker container (by pulling the image from Docker Hub)

You just need to have installed Docker on your machine.

docker push thele0/mars-rover-photos:<TAGNAME>
docker run -p 5000:8080 thele0/mars-rover-photos:<TAGNAME>

Note: You can replace 'TAGNAME' with your preferred image name and version values.

About

Mars Rover Photos is a web application that retrieves photos from the Mars rover using the NASA API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages