Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.68 KB

README.md

File metadata and controls

64 lines (44 loc) · 1.68 KB

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!