NASA Photo of the Day is a simple web application that fetches and displays the Astronomy Picture of the Day from NASA's API. This project was created by Mark Gowen.
- Users can view the Astronomy Picture of the Day from NASA's API.
- Users can view information about the photo, including its title, date, and explanation.
To run this project locally, follow these steps:
- Clone this repository to your local machine.
- Install the necessary dependencies by running the following command in the project directory:
npm install
- Obtain an API key from NASA's Open APIs website.
- Create a
.env
file in the root of the project and add the following line, replacingYOUR_API_KEY
with your actual API key:
API_KEY=YOUR_API_KEY
- Run the following command to start the development server:
npm start
- Open
http://localhost:3000
in your web browser to view the app.
Note: Make sure to keep your API key private and never share it publicly.
- React - a JavaScript library for building user interfaces.
- Axios - a promise-based HTTP client for making API requests.
- Styled Components - a CSS-in-JS library for styling React components.
This project is deployed using Vercel. Any changes pushed to the main
branch of this repository will automatically trigger a new deployment.
This project was created by Mark Gowen. Thank you to NASA for providing such a great API!
This project is licensed under the MIT License. Feel free to use and modify this code for your own purposes.