How harshithada/nasa-space-data-app works
This Flask app lets users search NASA’s Near Earth Object feed or DONKI by date, then presents readable results, including hazardous-asteroid indicators and DONKI event details with raw JSON available on demand. The main runtime is concentrated in app.py: its route validates submitted input, selects a fetch path, prepares summaries, and renders the page. The README documents the UI capabilities, but the template and stylesheet were not sampled, so their internal behavior and wiring are not inferred here.
Main entry points: app.py Flask search route · index.html Search page · style.css Page styling
Components 11
Web interface
- Search page
templates/index.html - Page styling
static/style.css
Search handling
- Flask search route
app.py
NASA data
- NEO feed fetch
app.py - DONKI fetch
app.py
Result preparation
- Asteroid preparation
app.py - DONKI summaries
app.py - Rendered results
app.py
Other components
- User browser
- NASA NEO API
- NASA DONKI API
Connections 13
- User browser → Search page: opens
README.md - Search page → Flask search route: submits search
README.md - Flask search route → NEO feed fetch: fetches NEO
app.py - Flask search route → DONKI fetch: fetches DONKI
app.py - NEO feed fetch → NASA NEO API: requests feed
app.py - NASA NEO API → NEO feed fetch: returns data
app.py - DONKI fetch → NASA DONKI API: requests events
app.py - NASA DONKI API → DONKI fetch: returns data
app.py - Flask search route → Asteroid preparation: prepares asteroids
app.py - Flask search route → DONKI summaries: summarizes events
app.py - Flask search route → Rendered results: renders page
app.py - Rendered results → Search page: returns HTML
app.py - Search page → Page styling: uses styling
README.md