A 3D interactive solar system web app built with React, Three.js, and Vite. Explore planets, view NASA data, and learn about our cosmic neighborhood.
- 3D solar system model with interactive planets
- Quick facts on hover & detailed sidebar on click
- APOD (Astronomy Picture of the Day)
- Asteroid tracker and random space events
- Integrates multiple NASA APIs
- Responsive, modern UI
git clone <repository-url>
cd Solar-system
npm install
Create a .env.local file in the project root and add -
VITE_NASA_API_KEY=your_api_key_here
npm run dev
If you're deploying to Netlify, Vercel etc:
Set your VITE_NASA_API_KEY as an environment variable in the hosting dashboard.
React 18
Three.js
React Three Fiber
Vite
NASA APIs
GitHub Pages does not support securely handling environment variables, which means there's no way to use an API key without exposing it publicly. As a result, I deployed the project on Vercel, which allows secure environment variable management and production-ready hosting.
THANK YOU :)