Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

CodecoolArchive2021/ask-nasa-javascript-Witchcraf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 

Repository files navigation

Ask NASA

Story

With the JavaScript fetch API based "GET request" you can connect to publicly available servers and get structured data. Did you know that NASA has a lot of open API? In this project you will start working with an open API and requesting data from the NASA API.

Your task is to get data from the APOD API and recreate their website with a little bit of more functionality.

What are you going to learn?

  • Creating a GET request
  • Getting data from an open NASA API

Tasks

  1. Everyday a new image is uploaded to the APOD server. Create a page where these pictures with other information are shown.

    • When we open up the page, an image with a title and an explanation shows up
    • Use img tag to display an image, and iframe for video
    • The data is matching with the information on https://apod.nasa.gov/apod/astropix.html
  2. Create an input where we can see earlier days images.

    • There is an input where we can pick an older date
    • When we picked an older date, the data in the page change
    • If we choose the date 2020 September 2, the data match with the information on https://apod.nasa.gov/apod/ap200902.html
  3. [OPTIONAL] Create a gallery where multiple images are next to each other. If the user click on one of the images, the information about the picture shows up.

    • In the landing page, there is a Gallery menu point that brings us to an image gallery
    • The gallery contains earlier images next to each other
    • When we click on one of the images, the image and information about the image shows up in a bigger modal

General requirements

None

Hints

  • First get familiar with fetch API.
  • To get the data you can use the DEMO_KEY API Key or create you own Nasa API Key for the project. If you use the demo key, it has a strict limitation regarding the amount of requests you make. More info is on the API documentation.
  • If a youtube link appears instead of the image, then convert it to be embedded, but you don't need to use youtube api.

Background materials

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors