Skip to content

NEO fetch utility consuming NASA REST service exposing the Near Earth Object data

Notifications You must be signed in to change notification settings

akshayhiremath/neorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QUICK USER GUIDE

--Setup

The repository has a maven project and a README file,

  1. src/ -> containes the source code of NeoUtility
  2. executables/ -> contains the exeutables used to run NeoUtility
  3. pom.xml -> POM file of the Neo maven project of Java nature
  4. README.md -> This quick user guide, the file you are currently reading :)

--Build Process

To build this project. You should have maven installed with right settings to connect to internet and download the dependencies. If you are behind firewall make sure you add proxy in your .m2/settings.xml. .m2/settigs.xml is generally located in the USER home directory. Which is, for Windows: C:\User<USERNAME>
for Linux: $HOME/.m2/

Once you have maven in place.

  1. Go to the <Your_PC_PATH>/neorepo directory,
  2. Run following command: mvn clean install

--Executing the NeoUtility

Once you have got SUCCESS in the build process above, you will find the executables in the maven build output directory i.e. "target" directory.

To run NeoUtility. Go to "target" and you will find two NeoUtility files one with extension .bat and other with extension .sh Use appropriate version based on your OS.

You can also execute the jar by using: java -Djava.net.useSystemProxies=true -jar neo-1.2.0-SNAPSHOT-jar-with-dependencies.jar START_DATE END_DATE

NeoUtility has 3 simple options to fetch the data of Near Earth Objects(NEO) from REST service exposed by NASA.

You can get NEO information for,

  1. today,
  2. Any date range of span of 7 days max,
  3. 7 days starting from particular date.

Information has 3 points, 1. No. of NEOs, 2. Largest NEO details, 3. Closest NEO details

For each option, you have to following commands respectively:

  1. Go to neorepo/ directory on command line.
  2. Run: a. For Data for today): NeoUtility b. For Data between 2 dates: NeoUtility <START_DATE> <END_DATE> c. For Data for 7 days from start date of your choice: NeoUtility <START_DATE>

After execution, the utility will wait for you to see the response. You can press any key to exit the window.

--Clean Up

  1. After you are done using the utility. You could safely delete the 'target' directory.

Thanks!! Akshay

About

NEO fetch utility consuming NASA REST service exposing the Near Earth Object data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages