Skip to content

This JavaScript web app searches universities worldwide by name or country via the HipoLabs API, displaying results in a list. It includes input validation, error handling, and a dynamic "Clear" button that disables when the list is empty.

Notifications You must be signed in to change notification settings

leafycodes/university-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

University Search App

A simple web application that fetches and displays universities by name or country using the HipoLabs Universities API.

API Note

The HipoLabs API uses http://, which may cause network errors when testing on HTTPS environments (like GitHub Pages). For local development, most browsers allow mixed content, but for production, consider:

  • Using a proxy service
  • Requesting HTTPS support from the API provider
  • Running a local backend to fetch data

Temporary Workaround (Not Recommended for Production)

For quick testing during development only:

  1. Visit the deployed page (e.g., University Search)
  2. Click the 🔒 lock icon in your browser's address bar
  3. Select "Site settings""Permissions"
  4. Under "Insecure content", change to "Allow" (Chrome) or equivalent in other browsers
  5. Refresh the page

⚠️ Warning: This exposes you to potential security risks. Only use this temporarily and revert when done testing.

Features

  • 🔍 Search by university name or country
  • 🚦 Input validation (shows errors for empty queries)
  • 🛠️ Error handling (network issues, no results, etc.)
  • 🗑️ Clear button (auto-disables when list is empty)

How It Works

  1. Enter a college name or country in the input field.
  2. Results appear as a list (<li> elements).
  3. Use the Clear button to reset the list.

Code Highlights

  • Async/Await for API calls (axios.get)
  • Dynamic UI updates (checkClear() manages button state)
  • User-friendly error messages

API Reference

https://github.com/Hipo/university-domains-list-api

About

This JavaScript web app searches universities worldwide by name or country via the HipoLabs API, displaying results in a list. It includes input validation, error handling, and a dynamic "Clear" button that disables when the list is empty.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published