Skip to content

JaninduMunasinghe/nasa-api-frontend

Repository files navigation

NASA API 🌏🚀

Description 📗

This is a project done for the year 3 semester 2 Application Frameworks module. The project has incorporated APIs from NASA API storage and utilized them to depict the data in a user-friendly manner.

Installation ⚙🔧

Prerequisites 🔔

  • React.js (v18 or higher)
  • npm or yarn
  • Tailwind
  • Firebase

Steps 📖

  1. Clone this repository.

    git clone https://github.com/sliitcsse/se3040-assignment02-JaninduMunasinghe.git
  2. Navigate to the project directory.

    cd assignment-02-JaninduMunasinghe
  3. Install dependencies.

    npm install

Running the Application 🪐✈

Development Mode 🛸

To run the application in development mode with nodemon:

npm run dev

To build the application for production

npm run build

API Documentation 📉

NASA's Astronomy Picture of the Day API and Mars Rover Photos API are used to integrate the application.

To acces API details, please visit https://api.nasa.gov

1. Astronomy Picture of the Day API

This API is used in the application to display the daily astronomy picture selected by NASA. For more details on this API visit https://github.com/nasa/apod-api

2. Mars Rover Photos API

This API is used in the application to retrieve images gathered by NASA's Curiosity, Opportunity, and Spirit rovers on Mars using selected cameras. Users can select the camera, and the images from that camera will be retrieved and displayed. For more details on this API visit https://api.nasa.gov/

Testing the Application 🛠

Vitest is used to test the application and ensure the functions are running smoothly.

Unit tests and integration tests are written for this application.

To run test 🛩

npm run test

Deployment 🌏✔

The application is deployed to web using vercel and the application can be accessed through
https://nasa-api-jet.vercel.app/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published