This project is an Angular-based weather application that utilizes the OpenWeatherMap API to fetch weather data for different locations. The app is styled using Tailwind CSS, providing a sleek and responsive user interface.
-
Weather Data: The app fetches weather data from the OpenWeatherMap API based on user-selected locations.
-
Location Search: Users can search for weather information in specific locations by entering city names.
-
Weather Details: The app displays detailed weather information, including temperature, humidity, and Feels like.
-
Responsive Design: Tailwind CSS is used to create a responsive design that adapts to various screen sizes and devices.
-
State Management with NgRx: NgRx is used for efficient state management, ensuring a consistent data flow and improving maintainability.
Check out the live demo of the Angular Weather App: Demo
- Angular: A powerful JavaScript framework for building dynamic web applications.
- Tailwind CSS: A utility-first CSS framework that makes styling and layout design efficient and flexible.
- OpenWeatherMap API: Provides weather data for locations worldwide.
- NgRx: A state management library that enhances data flow and organization in Angular applications
- Clone this repository
- Navigate to the project directory
- Install dependencies: npm install
- Replace the OpenWeatherMap API key in the environment.ts file with your own API key.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.