Skip to content

Discover the cosmos! I've created a website to display each day a different image or photograph of our fascinating univers, along with a brief explanation written by a professional astronomer.

Notifications You must be signed in to change notification settings

MirelaManta/APoD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M's Universe: Astronomy Picture of the Day

Welcome to M's Universe, your gateway to exploring the beauty of space through the Astronomy Picture of The Day (APoD). 🌌🔭🌠

Getting Started

  1. Clone the repository:

    git clone https://github.com/MirelaManta/APoD.git
  2. Install dependencies:

    npm install
  3. Create a .env file in the root directory and add your NASA API key:

    API_KEY=your-api-key
  4. Run the application:

    npm start

    The server will be running on http://localhost:3000.

Features

  • View the latest Astronomy Picture of the Day on the home page.
  • Search for past APoD images by selecting a specific date.
  • Error handling for invalid date requests.

Technologies Used

  • Node.js
  • Express.js
  • Axios
  • EJS (Embedded JavaScript templates)
  • Bootstrap 5

Project Structure

  • index.js: Server setup, API request functions, and route definitions.
  • views/apod.ejs: HTML template for displaying the APoD image and details.
  • views/error.ejs: HTML template for displaying error messages.
  • public/styles/main.css: Custom styles for the application.

Screenshots

  • Home Page: home

  • Search by date: search-date

  • Error Page: error

Contributing

If you'd like to contribute to M's Universe, feel free to open an issue or submit a pull request. Your input is highly appreciated!

About

Discover the cosmos! I've created a website to display each day a different image or photograph of our fascinating univers, along with a brief explanation written by a professional astronomer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published