This frontend application allows users to view Astronomy Picture of the Day (APOD) and track wildfires on Earth using NASA's public APIs.
- View Astronomy Picture of the Day
- Track wildfires on Earth
- React.js (functional components)
- Vite
- JavaScript
-
APOD (Astronomy Picture of the Day)
- Endpoint:
/apod
- Description: Returns the Astronomy Picture of the Day along with its details.
- Endpoint:
-
Wild Fires Tracker
- Endpoint:
/map
- Description: Displays wildfires on Earth using data from NASA satellites.
- Endpoint:
-
Clone the repository:
git clone https://github.com/HasithaPeiris/nasa-api-client.git
-
Navigate to the project directory:
cd nasa-api-client
-
Install dependencies:
npm install
To build the application, run the following command:
npm run build
-
Start the development server:
npm run dev
The application will be served at
http://localhost:3000
. -
Navigate to
http://localhost:3000
in your web browser. -
You will be presented with options to view Astronomy Picture of the Day or track wildfires on Earth. Click on the respective links to view the desired content.
-
Enjoy exploring the wonders of space and tracking wildfires with NASA's public APIs!