NASA API Explorer
npm install
npm run dev
👤 Nikhil Prasad
- Website: https://nikhil.engineer/
- GitHub: @nprasad2077
This project is a remake of a capstone application for a bootcamp. It aims to provide a media player and a population globe.
- Media Player
- Population Globe
Clone the repository and navigate to the project directory. Then run:
npm install
To start the application, run:
npm run dev
src/
|-- assets/
|-- components/
|-- styles/
|-- App.css
|-- App.jsx
|-- index.css
|-- main.jsx
Contains initial Vite setup files.
Contains files related to the media player's styling.
The ASOD.jsx
component is responsible for displaying NASA's Astronomy Picture of the Day (ASOD). It fetches the ASOD data and renders it as either an image or a video, depending on the media type. The component also allows users to save the current ASOD to their list of favorites.
asod
: Holds the ASOD data.media
: Holds the HTML for rendering the ASOD.favorites
: Holds the list of favorite images.loading
: Manages the loading state.
getAsod()
: Fetches ASOD data.getFavorites()
: Fetches the list of favorite images.saveButton()
: Saves the current ASOD to favorites.
This component is used within the main application to display the ASOD. It is a self-contained unit that manages its own state and API calls.
import ASOD from "./components/ASOD";
function App() {
return (
<div>
<ASOD />
</div>
);
}
None.
- React
- Axios
Contains files related to table scrolling behavior.
Handles video loading styles.
Responsible for rendering the population globe with the correct name.
Contains Tailwind CSS configuration.
Wraps the application in a browser router.
Please read CONTRIBUTING.md for details on how to contribute to this project.
This project is licensed under the MIT License.