AstroVista is a modern, open-source web app built Using NASA's Astronomy Picture of the Day (APOD) API, AstroVista fetches and displays images daily about astronomy.
- 🌠 Daily Astronomy Pictures: Fetches the latest astronomy images from NASA's APOD API.
- 🛰 NASA API Integration: Seamlessly pulls data directly from NASA's resources.
- 🎨 Dark Mode: Automatically switches to dark mode while viewing.
To run AstroVista locally, follow these steps:
-
Clone the repository:
git clone https://github.com/FernaandoJr/AstroVista.git cd AstroVista
-
Install the dependencies:
npm install
-
Get your NASA API key or using the default public key
DEMO_KEY
by signing up here, then create a.env.local
file in the root of your project and add the API Key and the MongoDB connection string:NEXT_PUBLIC_NASA_API_KEY=your_nasa_api_key MONGODB_APOD_URI="mongodb+srv://user:1f9xBDol8GP9ipQM@astrovistacluster.jggvb.mongodb.net/Apod?retryWrites=true&w=majority"
-
Run the building and the development script:
npm run bd
-
Open your browser and navigate to
http://localhost:3000
to explore AstroVista locally!
We welcome contributions from the open-source community! Here's how you can get started:
-
Fork the repository on GitHub.
-
Clone your forked repo locally:
git clone https://github.com/FernaandoJr/AstroVista.git
-
Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
-
Make your changes, ensuring your code follows best practices.
-
Test your changes run
npm run build
locally and make sure everything works as expected. -
Commit and push your changes to your forked repository:
git commit -m "Add feature: your-feature-name" git push origin feature/your-feature-name
-
Submit a pull request to the main repository with a clear description of your changes.
- Implementing a user favorite system to save and categorize favorite images.
- Add filters in the gallery section, allowing the user to filter by a specific date or media type.
- Internalization by changing automatically to the user current device language.
- Mars Hover Photos NASA API implementation
If you have any questions, feel free to reach out via GitHub Issues. We’d love to hear your thoughts or ideas for future improvements!
🔗 Join the AstroVista Discord Server
We look forward to seeing you there and exploring the universe together!
This project is licensed under the MIT License. See the LICENSE file for more details.