An open API service indexing awesome lists of open source software.

https://github.com/schneedotdev/nasa-asteroid-observation-tool

Using NASA's Asteroid NeoWs API, this app allows you to observe an archive of asteroids that have been within a close proximity of earth
https://github.com/schneedotdev/nasa-asteroid-observation-tool

Last synced: 8 months ago
JSON representation

Using NASA's Asteroid NeoWs API, this app allows you to observe an archive of asteroids that have been within a close proximity of earth

Awesome Lists containing this project

README

          


NASA Asteroid Observation Tool


Using NASA's Asteroid NeoWs API, this app allows you to observe an archive of asteroids that have been within a close proximity of earth.


Live Website: https://asteroid-observer.netlify.app




## How It's Made:

**Tech used:** HTML, CSS, JavaScript

Using the Fetch API, I was able to request data from NASA's NeoWs API. Once the response is received, I populate the DOM with elements representing each of NASA's documented asteroids. I use an image of an asteroid to represent each object that was received from NASA. Each asteroid has a hover state that displays the asteroid flying across the screen and a click event which brings up information about the asteroid. Lastly, each asteroid is given a random location, size and trajectory/slope to follow. The image used is then rotated based on the angle produced by the tangent line given by the slope, and the x axis.

## Future Optimizations:


  • Using netlify, store token secret from user and consume it on page load.

## Lessons Learned:

By using math and css transformations, I am able to simmulate the path of an asteroid across a browser window.