Skip to content

AritraC1/weather_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

This app showcases a Flutter application that connects to a NodeJs server for fetching Weather Data of our current and searched locations. Along with animated weather data using Lottie Animations. Here are some of the app samples:

Current Location Searched Location 1: Kolkata Searched Loaction 2: Ishigaki

Server (NodeJs)

Implemented Node.js with the 'express' library. The Node.js server acts as an API that processes requests from the Flutter app, fetches real-time weather data from a third-party API (OpenWeatherMap), and sends the data back to the Flutter app in a structured JSON format on port 3000.

Installation and Usage

  1. Ensure Node.js is installed on your machine.
  2. Navigate to the server directory: 'cd server'
  3. Install dependencies: 'npm install'
  4. Start the server: 'npm start'
  5. The server initiates on 'http://localhost:3000'.

Client (Flutter)

The Flutter client app connects seamlessly to the server and provides a user interface where users can enter a location to view weather information. It fetches data from the backend, displays the location name, weather icon, temperature, description, and other details like wind speed and humidity, and updates the background and weather icon based on weather conditions.

Installation and Usage

  1. Confirm Flutter is installed on your machine.
  2. Navigate to the Flutter app directory: 'cd weather_app'
  3. Install dependencies: 'flutter pub get'
  4. Connect your device or launch an emulator.
  5. Run the Flutter app: 'flutter run'
  6. Input the server URL (e.g., 'http://localhost:3000')