An open API service indexing awesome lists of open source software.

https://github.com/ayushsgithub/grouple_task

A modern and user-friendly weather application built with React, Tailwind CSS, and JavaScript.
https://github.com/ayushsgithub/grouple_task

iconscout-unicons netlify openweathermap-api reactjs tailwindcss vite

Last synced: 30 days ago
JSON representation

A modern and user-friendly weather application built with React, Tailwind CSS, and JavaScript.

Awesome Lists containing this project

README

          

# Weather App Project for Grouple

A modern and user-friendly weather application built with React, Tailwind CSS, and JavaScript.

![Weather App Screenshot](https://raw.githubusercontent.com/ayushsgithub/grouple_task/main/src/assets/app.png)

[Deployed Link](https://grouple-task.netlify.app/)

## Table of Contents

- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Configuration](#configuration)
- [Running the Application](#running-the-application)
- [Usage](#usage)
- [Credits](#credits)

## Getting Started

### Prerequisites

Before you begin, ensure you have the following prerequisite installed:

- Git
- NPM

### Installation

1. **Clone the Repository**:

```bash
git clone https://github.com/ayushsgithub/grouple_task.git
```

2. **Navigate to the Project Directory**:

```bash
cd grouple_task
```

3. **Install Dependencies**:

```bash
npm install
```

### Configuration

1. **Obtain an API Key from [OpenWeatherMap](https://openweathermap.org/api)**.

2. **Create a `.env` File**:
- In the project root directory, create a `.env` file if it doesn't already exist.

3. **Add Your API Key to the `.env` File**:

```bash
VITE_API_KEY=
```

### Running the Application

To start the development server and run the application, use the following command:

```bash
npm run dev
```
### Usage

- Enter a city name or zip code.
- Choose between Celsius (°C) and Fahrenheit (°F).
- Click the search icon to fetch weather data.

## Credits

- Weather data from [OpenWeatherMap](https://openweathermap.org/).
- React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh