How ange25-ca/cosmic_explorer works
Project type and purpose
• Cosmic Explorer is a cross-platform (mobile + web) application built with React Native and Expo.
• It follows Clean Architecture and the MVVM (Model-View-ViewModel) pattern to fetch and display data from five NASA APIs (APOD, EPIC, INSIGHT, SSD/NEOS, Mars Rovers).
File structure
• Top-level files: configuration (babel.config.js, tsconfig.json, app.json), entry points (index.ts, App.tsx), assets folder for static assets, .env reference.
• src/ splits into:
• data (datasources, models, local storage)
• domain (entities, repositories, use cases)
• services (API-calling wrappers for each NASA endpoint)
• presentation (screens, components, hooks, view models)
• navigation (Drawer, Stack, Tab navigators)
• store (Redux slices for theme and global state)
• types/typings (shared TypeScript interfaces)
• This clearly reflects a layered (Clean) architecture: Presentation → Domain → Data → External APIs + Storage.
README for additional insights
• Confirms Clean Architecture + MVVM.
• Emphasizes the need for an API key (.env) and Expo start.
• Mentions no backend server: the app directly consumes NASA REST APIs.