Skip to content

WeatherApp - A Flutter project using the OpenWeatherMap API with best practices.

Notifications You must be signed in to change notification settings

ogaroh/cs_weather_app

Repository files navigation

WeatherApp

A Flutter project using the OpenWeatherMap API with best practices.

Getting Started 🚀

IMPORTANT!!!! ---- Environment Setup

  • Make a copy of the .env.example file and name it .env.
  • In the .env file, modify the BASE_URL and the API_KEY values to the correct ones (e.g. BASE_URL=http://api.openweathermap.org/data/2.5. Please note that the base URL does not have the trailing /). Without these, the application will not run as required.

Project Flavors

This project contains 3 flavours:

  • development
  • staging
  • production

To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:

# Development
$ flutter run --flavor development --target lib/main_development.dart

# Staging
$ flutter run --flavor staging --target lib/main_staging.dart

# Production
$ flutter run --flavor production --target lib/main_production.dart

Alternatively, on Visual Studio Code:

  • Go to Run and Debug
  • Select either Launch development, Launch staging or Launch production then click on the Run button as shown below
Screenshot 2025-01-26 at 00 50 22 Screenshot 2025-01-26 at 00 50 15

*WeatherApp works on iOS & Android.


Sample Screenshots 📲

Cities, Search, Last Updated & Online Status

Image_1

Image_2

Image_3

About

WeatherApp - A Flutter project using the OpenWeatherMap API with best practices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages