Skip to content

CPSearchX is a simple search engine web application that allows users to search the web using the Google Custom Search API. It provides search results in a user-friendly interface with pagination and basic styling.

License

Notifications You must be signed in to change notification settings

h4jack/cpsearchx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPSearchX

CPSearchX is a simple search engine web application that allows users to search the web using the Google Custom Search API. It provides search results in a user-friendly interface with pagination and basic styling.

Preview

To preview CPSearchX, you can visit the live demo here.

Table of Contents

Features

  • Search Bar: Allows users to input search queries.
  • Search Results: Displays search results including title, link, and snippet.
  • Pagination: Enables loading more results dynamically.
  • Responsive Design: Supports different screen sizes.

Technologies Used

  • Frontend: HTML, CSS, JavaScript
  • Backend: PHP
  • API: Google Custom Search API

Files and Structure

  • index.php: Main HTML and PHP file handling frontend and backend logic.
  • load.php: PHP script handling AJAX requests to fetch search results.
  • main.js: JavaScript file for dynamic interaction and AJAX handling.
  • style.css: CSS file for styling the interface.

Setup Instructions

  1. Clone the repository:
git clone https://github.com/h4jack/cpsearchx.git
  1. Configure your web server (e.g., Apache) to serve the files.

  2. Obtain a Google Custom Search API key and replace $apiKey and $cx in load.php with your own credentials.

  3. Access the application through your web browser.

Usage

  1. Enter a search query in the provided search bar.
  2. Click on the "Search" button or press Enter to fetch results.
  3. Scroll through the results and click on links to visit the corresponding websites.
  4. Use pagination to load more search results.

About

This project was developed as a learning exercise to implement AJAX-based search functionality using PHP and JavaScript.


Authors

License

This project is licensed under the MIT License

Feedback

If you have any feedback or suggestions, please feel free to create an issue or contact us.

About

CPSearchX is a simple search engine web application that allows users to search the web using the Google Custom Search API. It provides search results in a user-friendly interface with pagination and basic styling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published