This web application, built with React, TypeScript, and Vite, allows users to explore images provided by NASA's API. The app displays an image, its title, and a description. Users can save the displayed data using localStorage, ensuring that the information persists across sessions.
- NASA API Integration: Fetches and displays images along with their titles and descriptions from NASA's API.
- LocalStorage Support: Saves fetched data to localStorage to maintain data persistence.
- Responsive Design: Adaptable layout for various screen sizes.
Check out the live demo of the application here
Ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/MielAndMoon/nasa-react-app.git cd nasa-react-app
-
Install the dependencies:
npm install # or yarn install # or pnpm install
-
Obtain a NASA API key by signing up at NASA's API Portal.
-
Create a
.env
file in the root directory and add your NASA API key:VITE_NASA_API_KEY=your_api_key_here
To start the development server, run:
npm run dev
# or
yarn dev
#
pnpm run dev
The application will be available at http://localhost:5173
.