https://github.com/web-dev-nav/image-search-api
Image display API is a small task that explains the concepts of API like how to fetch images from API and store it into DB
https://github.com/web-dev-nav/image-search-api
Last synced: 3 months ago
JSON representation
Image display API is a small task that explains the concepts of API like how to fetch images from API and store it into DB
- Host: GitHub
- URL: https://github.com/web-dev-nav/image-search-api
- Owner: web-dev-nav
- Created: 2022-08-06T11:28:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-13T06:57:07.000Z (almost 3 years ago)
- Last Synced: 2025-02-01T18:13:03.673Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image-search-API
Image display API is a small task that explains the concepts of API like how to fetch images from API and store it into DB. If the search term is already inside the database call instead database in case the next time user request the same search term.
# This script is applicable to do these features...
- Create a PHP application to show the images that we search.
- There should have a login, login should have an email and password field ( No need of registration, for now, you can manually add one entry in the user table. ).
- After login, it should show the input box and button to search.
- Whatever we put in the input box and click on the search button, it should search via API and show the images below the search bar.
- [https://imsea.herokuapp.com](https://imsea.herokuapp.com/) - This is the API that you can use to find the image URL. here we can pass any term to get image URL list.
- Once we get the response from the API, save the URLs and search terms in the database.
- From the next search If the term is available in the database, it should directly show the result from the database.
- We should not call API if the search term is available in the database.# Login details
- Username: [email protected]
- Password: rasmuslerdorf# views

# Installation
Change the details inside Config/db.php
```php
$servername = "localhost";
$username = "u957918675_temp";
$password = "4~Ybxd+z";
$db = "u957918675_temp";
```
# Youtube Explained
[(Youtube)](https://www.youtube.com/watch?v=3HIr0imLgxM)