README
Weather App
A weather application built with PHP and vanilla JavaScript.
Users can search for cities and view real-time weather data through a simple and responsive interface.
Overview
This project implements a lightweight fullstack weather system focused on API integration, environment configuration, and clean separation between frontend and backend.
It was built to practice structuring applications without frameworks while maintaining clear organization and secure API handling.
Features
- Search cities with autocomplete
- Fetch real-time weather data
- Secure API key handling via backend proxy
- Responsive interface
- Error handling with user feedback
Tech Stack
- PHP
- JavaScript
- HTML
- CSS
Architecture
The application follows a modular structure with clear separation between backend logic, frontend behavior, and configuration.
api/defines the backend API proxy layerpublic/assets/js/contains frontend logicsrc/contains environment configurationpublic/serves the application entry point and assets
The project emphasizes separation of concerns and secure communication with external APIs.
Project Structure
public/- entry point and static assetsapi/- backend API proxysrc/- environment configurationpublic/assets/js/- frontend scripts
Running Locally
Using PHP locally
php -S localhost:8000 -t public
Connect with Me