1. Clone the repository:
```bash
git clone https://github.com/Indula-Perera/JS-Image-Search.git
cd image-search-app
-
Create a file named
config.js
in the root directory and add your Unsplash access key:// config.js const accessKey = "your-access-key";
-
Open
index.html
in your browser or host the files on a web server.
-
Open
index.html
in your web browser. -
Enter a search query in the input field and click the "Search" button.
-
The app will fetch images from Unsplash and display them along with links to the original source.
-
Click on the "See More" button to load more images.
Feel free to customize the app according to your preferences. You can modify the CSS styles in style.css
and enhance the functionality in script.js
.
Important: You need to create your own Unsplash account and obtain your access key (API key) through the Unsplash Developer site. Replace the placeholder access key in config.js
with your actual access key.