Welcome to M's Universe, your gateway to exploring the beauty of space through the Astronomy Picture of The Day (APoD). 🌌🔭🌠
-
Clone the repository:
git clone https://github.com/MirelaManta/APoD.git
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add your NASA API key:API_KEY=your-api-key
-
Run the application:
npm start
The server will be running on http://localhost:3000.
- 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.
- Node.js
- Express.js
- Axios
- EJS (Embedded JavaScript templates)
- Bootstrap 5
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.
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!