|
Astronomy Picture of the Day (APOD) is one of NASA's most popular websites, featuring a different space or astronomy-related image each day, along with a brief explanation written by a professional astronomer. |
To bring the wonders of the universe to your fingertips through a beautiful, modern, and intuitive React application that showcases NASA's incredible imagery. |
Everyday Image with Description
All Pictures
|
React |
Vite |
JavaScript |
CSS3 |
HTML5 |
const techStack = {
frontend: ["React", "JavaScript ES6+", "CSS3"],
buildTool: "Vite",
api: "NASA APOD API",
features: ["Responsive Design", "Dynamic Content", "Modern UI/UX"],
};nasa-apod-explorer/
โโโ public/
โ โโโ mars.png
โ โโโ vite.svg
โโโ src/
โ โโโ assets/
โ โ โโโ react.svg
โ โ โโโ Screenshot.png
โ โ โโโ menu.png
โ โโโ components/
โ โ โโโ App.jsx
โ โ โโโ Footer.jsx
โ โ โโโ Main.jsx
โ โ โโโ SideBar.jsx
โ โ โโโ NavigationSidebar.jsx
โ โ โโโ Gallery.jsx
โ โโโ index.css
โ โโโ main.jsx
โโโ .env # Environment variables (NASA API key)
โโโ .gitignore
โโโ index.html
โโโ package.json
โโโ README.md
Step 1๏ธโฃ : Clone the Repository
# HTTPS
git clone https://github.com/shekhawatmuskan/nasa-react-app.git
# SSH
git clone git@github.com:shekhawatmuskan/nasa-react-app.git
# GitHub CLI
gh repo clone shekhawatmuskan/nasa-react-appStep 2๏ธโฃ : Navigate to Project Directory
cd nasa-react-appStep 3๏ธโฃ : Install Dependencies
npm install
This will install:
- โ๏ธ React and React DOM
- โก Vite and build tools
- ๐ง ESLint for code quality
- ๐ฆ All project dependencies
Step 4๏ธโฃ : Get Your NASA API Key ๐
- Visit NASA API Portal ๐
- Fill out the simple registration form ๐
- Receive your API key instantly via email ๐ง
- Copy your unique API key ๐
๐ก Tip: NASA API keys are free and provide generous rate limits!
Step 5๏ธโฃ : Configure Environment Variables
Create a .env file in the root directory:
# NASA API Configuration
VITE_NASA_API_KEY=your_actual_api_key_here
# Optional: Add custom configurations
# VITE_API_BASE_URL=https://api.nasa.gov
โ ๏ธ Important: Never commit your.envfile to version control!
Step 6๏ธโฃ : Launch the Application ๐
npm run dev
Your app will be running at:
๐ Local: http://localhost:5173/
๐ฑ Network: http://192.168.x.x:5173/
graph TD
A[App.jsx] --> B[Main.jsx]
A --> C[SideBar.jsx]
A --> D[Footer.jsx]
A --> E[NavigationSidebar.jsx]
A --> F[Gallery.jsx]
B --> G[Image Display]
C --> H[Title & Date]
C --> I[Description]
D --> J[Navigation]
E --> K[Menu Options]
F --> L[All Pictures with Descriptions]
style A fill:#667eea,stroke:#764ba2,stroke-width:3px,color:#fff
style B fill:#f093fb,stroke:#f5576c,stroke-width:2px
style C fill:#4facfe,stroke:#00f2fe,stroke-width:2px
style D fill:#43e97b,stroke:#38f9d7,stroke-width:2px
style E fill:#fa709a,stroke:#fee140,stroke-width:2px
style F fill:#30cfd0,stroke:#330867,stroke-width:2px
