This is a React.js app that utilizes the Nasa API to display information and images related to astronomy and space Daily.
- Clone the repository:
git clone https://github.com/your-username/filename.git
- Navigate to the project directory:
cd filename
- Install the dependencies:
npm install
- Obtain an API key from the Nasa API website, https://api.nasa.gov
- Create a
.env
file in the root directory of the project. - Add your API key to the
.env
file:REACT_APP_NASA_API_KEY=your-api-key
- Start the development server:
npm start
- Open your browser and navigate to
http://localhost:3000
to view the app.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
To deploy the app to a hosting platform, follow these steps:
- Build the app for production by running the command:
npm run build
. - Once the build is complete, you will have a
build
directory in the root of your project. - Upload the contents of the
build
directory to your hosting platform. - Configure your hosting platform to serve the app using the appropriate settings.
- Once the deployment is complete, you can access your app using the provided URL.
- Make sure to keep your API key secure and do not share it publicly.
- If you encounter any issues or have any questions, please open an issue on the project's GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for more information.