Skip to content

r20222/NASA-Astronomy-Picture-Of-The-Day

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NASA-Astronomy-Picture-Of-The-Day

This project was made with the APOD API from NASA. Find NASA API's here: https://api.nasa.gov/

I made this project to practice with API data and to practice with POST so you can leave messages.

image

How does it work?

Everyday NASA chooses a picture to be the picture of the day. You can choose with the date picker which date you want to see the picture of. If you want to comment on a picture, you could do so in the comment section.

Live link

https://nasa-astronomy-picture-of-the-day.onrender.com/

Tools

I used the following things:

  • Node.js
  • EJS
  • CSS
  • JavaScript
  • Express
  • Nodemon
  • Dotenv
  • Gitignore
  • express-xss-sanitizer (to prevent Cross Site Scripting (XSS) attack)
  • HTML popover

Sources

NASA API:

API for POSTing messages:

Preventing double posts on forms:

To host my project:

Coolors helped me in finding some colors:

express-xss-sanitizer

I also asked chatGPT for help sometimes