A modern Next.js application for tracking Near Earth Objects (NEOs) and meteors approaching our planet, built with real-time data from NASA's Open Data Portal.
⚡⚡⚡ Live Demo
- 🔭 Real-time Meteor Tracking: Display upcoming Near Earth Objects with detailed information
- 📊 Rich Data Visualization: Interactive cards showing meteor size, velocity, and approach distance
- 🚨 Hazard Detection: Highlight potentially hazardous asteroids
- 📸 Astronomy Picture of the Day: Beautiful space imagery from NASA
- 📱 Responsive Design: Works seamlessly on desktop and mobile devices
- 🎨 Modern UI: Built with Tailwind CSS and TypeScript
- Framework: Next.js 15 with App Router
- Language: TypeScript
- Styling: Tailwind CSS
- API Integration: NASA Open Data Portal
- HTTP Client: Axios
- Date Handling: date-fns
- Deployment: Render.com
- Node.js 18+
- npm or yarn
- Clone the repository:
git clone <your-repo-url>
cd pdx-meteor-tracker- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env.local-
Get your NASA API key (optional - DEMO_KEY has rate limits):
- Visit https://api.nasa.gov/
- Sign up for a free API key
- Update
NEXT_PUBLIC_NASA_API_KEYin.env.local
-
Run the development server:
npm run devOpen http://localhost:3000 to see the application.
The application integrates with several NASA APIs:
- Near Earth Object Web Service (NeoWs): For asteroid and comet data
- Astronomy Picture of the Day (APOD): For daily space imagery
- Push your code to GitHub/GitLab
- Connect your repository to Render
- Use the included
render.yamlconfiguration - Set environment variables in Render dashboard:
NEXT_PUBLIC_NASA_API_KEY: Your NASA API key
- Deploy automatically on every push to main branch
- Sign up for Render.com
- Create a new Web Service
- Connect your Git repository
- Configure:
- Build Command:
npm ci && npm run build - Start Command:
npm start - Environment: Node.js
- Plan: Free
- Build Command:
- Add environment variables in the dashboard
- Deploy!
| Variable | Description | Required |
|---|---|---|
NEXT_PUBLIC_NASA_API_KEY |
NASA API key for data access | No (defaults to DEMO_KEY) |
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
- NASA Open Data Portal for providing free access to space data
- Next.js team for the amazing framework
- Tailwind CSS for the utility-first CSS framework