logo

Github User Finder and Weather App

Github User Finder and Weather App

React API-Powered Apps

This repository contains two React applications that utilize APIs to fetch and display data:

  1. GitHub User Finder
  2. Weather App

1. GitHub User Finder

GitHub User Finder is a React application that allows users to search for GitHub profiles by entering a username.

Features

  • Search for GitHub users by username
  • Display user information including avatar, bio, and public repositories
  • Show user's followers and following count

How it works

  1. Enter a GitHub username in the search box
  2. Click the search button or press Enter
  3. The app fetches data from the GitHub API and displays the user's information

Technologies Used

  • React
  • JavaScript (ES6+)
  • CSS (or styled-components)
  • GitHub API

2. Weather App

Weather App is a React application that provides current weather information and a 3-day forecast based on the user's location or a searched city.

Features

  • Automatically detect user's location (with permission)
  • Display current weather conditions
  • Show a 3-day weather forecast
  • Allow users to search for weather in any city

How it works

  1. The app requests permission to access the user's location
  2. If granted, it fetches the coordinates and displays the local weather
  3. Users can also search for weather in any city using the search function
  4. Weather data is fetched from a weather API (e.g., OpenWeatherMap)

Technologies Used

  • React
  • JavaScript (ES6+)
  • CSS (or styled-components)
  • Geolocation API
  • Weather API (e.g., OpenWeatherMap)

Installation and Usage

  1. Clone this repository
  2. Navigate to the project directory
  3. Install dependencies:
  4. Start the development server:
  5. Open your browser and visit http://localhost:3000

API Keys

To run these applications, you'll need to obtain API keys:

  • For GitHub User Finder: No API key required for basic usage
  • For Weather App: Sign up for a free API key at OpenWeatherMap or your chosen weather API provider

Create a .env file in the root directory of each project and add your API keys:

Remember to add .env to your .gitignore file to keep your API keys secret.

Contributing

Feel free to fork this repository and submit pull requests for any improvements or bug fixes.

License

This project is open source and available under the MIT License .