Skip to content

A tool that returns a visualization of Near-Earth Objects that will be making passes in the coming 7 days, includes a scale map to show how near each pass will be.

Notifications You must be signed in to change notification settings

DJSethDuncan/neo-lookup

Repository files navigation

screenshot

neo-lookup

Near-Earth-Object Lookup

This tool will show you the near-earth-asteroids that are making a close pass on each day for the coming week. The tool has the ability to show NEOs for any date or a date range, so let's build that out together, fren.

Live Demo

setup

  1. clone
  2. npm i
  3. get a NASA API key here
  4. setup .env file to match the example .env.default format using the NASA API you acquired
  5. npm start
  6. navigate to localhost:3000 in a browser

dev

The app uses express/pug as a backend to spin up locally.

  • The routes/index.js file handles the request to localhost:3000 -- gets the API data, stringifies it, and passes it via express arg to index.pug
  • The views/index.pug file handles the UI of the page, but it also extends views/layout.pug -- which is important...
  • The views/layout.pug file imports public/javascripts/main.js (which is where most of our display/transform logic lives) and parses the JSON data string back into a JSON object (because I can't figure out how to pass an object vs a string as a param from express -> pug...)
  • The public/javascripts/main.js file handles the logic to transform the data into UI elements for display

data

Data sourced from this API from JPLs database

About

A tool that returns a visualization of Near-Earth Objects that will be making passes in the coming 7 days, includes a scale map to show how near each pass will be.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published