The NASA Image Search Engine is a web application that allows users to search for, view, and download images from NASA's extensive image library. The application is built using Node.js, Express, and EJS. It integrates with NASA's public API to fetch and display images based on user queries.
- Search for Images: Users can search for images using keywords.
- View Images: Displays images with titles and descriptions.
- Download Images: Option to download images directly from the web interface.
You can view the live application at: NASA Image Search Engine
- Node.js (>= 14.x)
- npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/mandarwagh9/NASA-IMAGE-SEARCH-ENGINE.git
-
Navigate to the project directory:
cd NASA-IMAGE-SEARCH-ENGINE
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory with your NASA API key:NASA_API_KEY=your_nasa_api_key_here
-
Run the application:
node app.js
The application will be available at
http://localhost:3000
.
This application is deployed on Vercel. To deploy on Vercel, follow these steps:
-
Install Vercel CLI:
npm install -g vercel
-
Log in to Vercel:
vercel login
-
Deploy the application:
vercel
Follow the prompts to deploy your application.
app.js
: Main application file where the server is set up and routes are defined./views
: Contains EJS templates for rendering views./public
: Contains static assets like stylesheets and images.package.json
: Project metadata and dependency definitions..env
: Environment variables, including the NASA API key.
The NASA Image Search Engine uses the NASA Image and Video Library API. You can find more details about the API here.
Contributions are welcome! Please fork the repository and submit a pull request with your changes. Ensure that your code adheres to the project's coding standards and includes appropriate tests.
This project is licensed under the MIT License.