Prerequisites
Before you begin, ensure you have:- Android Studio Koala or newer
- JDK 17 or newer
- An Android device or emulator with Android 8.0 (API 26) or higher
- Internet connection for dependencies and API calls
Quick Start
Open in Android Studio
- Launch Android Studio Koala or newer
- Click File → Open
- Navigate to the cloned
NASAExplorerdirectory - Click OK and wait for Gradle to sync
The initial Gradle sync may take several minutes as it downloads dependencies.
Configure NASA API Key
Get a free NASA API key and add it to your project:
- Visit https://api.nasa.gov/ and request an API key
- Create a file named
local.propertiesin the project root (if it doesn’t exist) - Add your API key to the file:
local.properties
Set up Firebase
Configure Firebase for authentication and cloud storage:
- Create a project at Firebase Console
- Add an Android app with package name:
com.ccandeladev.nasaexplorer - Download the
google-services.jsonfile - Place it in the
app/directory of your project - Enable Authentication (Email/Password) in Firebase Console
- Enable Realtime Database in Firebase Console
First Run
When you first launch NASA Explorer:- Register an account — Create a new account with your email and password
- Explore the home screen — Navigate through the bottom tabs
- View daily image — Check out today’s Astronomy Picture of the Day
- Try favorites — Save images to your personal collection with notes
Troubleshooting
Build fails with 'NASA_API_KEY not found'
Build fails with 'NASA_API_KEY not found'
Make sure you’ve created the Then sync Gradle again: File → Sync Project with Gradle Files
local.properties file in the project root with your API key:Firebase authentication not working
Firebase authentication not working
Verify that:
- The
google-services.jsonfile is in theapp/directory - Email/Password authentication is enabled in Firebase Console
- Your SHA-1 certificate is registered in Firebase (for production builds)
App crashes on launch
App crashes on launch
Check that:
- Your device/emulator is running Android 8.0 (API 26) or higher
- You’ve completed the Gradle sync successfully
- Firebase is properly configured with Realtime Database enabled
Images not loading
Images not loading
Ensure:
- Your NASA API key is valid and has available quota
- The device/emulator has internet connectivity
- You’re not hitting NASA API rate limits (30 requests/hour for DEMO_KEY)
Next Steps
Full Installation Guide
Detailed setup instructions and advanced configuration
NASA API Configuration
Learn about API endpoints and rate limits
Firebase Setup
Complete Firebase configuration guide
Architecture Overview
Understand the app’s MVVM architecture
Getting Help
If you encounter issues:- Check the Configuration Guide for detailed setup
- Review the Troubleshooting section
- Open an issue on GitHub