A Next.js app that highlights NASA's Astronomy Picture of the Day. Browse the current feature, explore random selections, or dive into specific dates with image and video support. The UI is built with Tailwind CSS and Radix UI components, with client-side theming and dynamic data fetching from NASA's public API.
Live production build: https://mikam-dev--apod.vercel.app/
- Display the current Astronomy Picture of the Day with metadata, copyright, and media support for images or videos.
- Search any date via a date picker and deep link to a dedicated detail page.
- Explore a grid of random APOD entries to quickly browse past highlights.
- Responsive layout with loading skeletons for a smooth experience.
- Framework: Next.js 14 with the App Router
- Styling: Tailwind CSS, Radix UI, and shadcn/ui components
- Utilities: date-fns for date handling, NASA APOD REST API for data
- Ensure you're running Node.js 24.x.
- Install dependencies:
npm install
- Create a
.env.localfile with your NASA API key:NEXT_PUBLIC_NASA_API_KEY=<your_api_key>
- Run the development server:
npm run dev
- Open http://localhost:3000 to view the app.
npm run dev– start the development servernpm run build– create an optimized production buildnpm start– run the production build locallynpm run lint– run ESLint checks
The app is configured for deployment on Vercel; the production build is available at https://mikam-dev--apod.vercel.app/.