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

https://github.com/eman-nemo/weather-app

this is task to apply security , performance , Scalability
https://github.com/eman-nemo/weather-app

cashing cdn clean-architecture csr docker nextauth nextjs offlinecache performance pwa reacthookform reactquery scalability security ssr supabase testing typescript zod

Last synced: 23 days ago
JSON representation

this is task to apply security , performance , Scalability

Awesome Lists containing this project

README

          

# ๐ŸŒฆ๏ธ Next.js Weather App

A modern, scalable, and secure weather web application built with **Next.js** and **TypeScript** that provides real-time weather updates, user authentication, offline support, and encrypted API communication. This project is optimized for performance and designed to handle **100k concurrent users**.

---

## ๐Ÿ”ง Tech Stack & Architecture

- **Framework:** [Next.js](https://nextjs.org/) (Latest Stable)
- **DataBase:** SupaBase integrated wih Weather API
- **Language:** TypeScript
- **Data Fetching:** React Query
- **SSR / SSG:** Optimized
- **Styling:** Tailwind CSS
- **Containerization:** Docker
- **Caching & Load Balancing:** CDN (e.g. Cloudflare) with load-balancing strategy
- **Security:** 64-bit custom encryption for API data
--**SupaBase:** Authentication and handle favorites
---

## ๐Ÿ–ผ๏ธ UI Features

- Reusable Components:
- Weather Cards
- Search Bar
- Weather Details
- Favorites List
- Dark / Light Theme Support

---

## ๐ŸŒ Core Features

### ๐Ÿ”ธ Home Page
- Auto-detects user location via **Geolocation API**
- Displays weather conditions: temperature, wind, humidity
- Offline caching via **IndexedDB** and **localStorage**

### ๐Ÿ”ธ City Search
- Fuzzy search for global cities
- Displays weather data for searched cities

### ๐Ÿ”ธ Favorites
- JWT-based Authentication System
- Add/remove favorite cities (stored securely)
- View summaries in a favorites list

---

## ๐Ÿ” Security

- **64-bit Custom Encryption** for all API responses
- Encrypted local storage of sensitive data
- **JWT Authentication** for protected routes
- Secure headers and enforced HTTPS

---

## โšก Performance & Scalability

- SSR / SSG for improved SEO & speed
- CDN caching using services like **Cloudflare**
- Docker-based containerization
- Designed to support **100,000+ concurrent users**
- Performance tracking using Lighthouse / Core Web Vitals

---

## ๐Ÿงช Testing

- Unit Testing: **Jest** + **React Testing Library**
- Integration Testing: **Cypress** or **Playwright**
- **85%** Code Coverage (with reports)
- Code Quality enforced with ESLint & Prettier

---

## ๐Ÿ†“ Bonus Features

- โœ… PWA Support (Offline Access)
- โœ… GraphQL Support (Optional)
- โœ… CI/CD with **GitHub Actions**
- โœ… Deployment: **Vercel**, **AWS Amplify**, or similar
- โœ… Load Testing Reports using **JMeter** or **k6**

---