How lembolov9/web_lab4 works
Project type and purpose
• This is a full-stack web application (“web_lab4”) that lets users view weather information by city.
• The client directory is a React app (with Redux) providing the UI; the server directory is an Express/Node API that handles requests and fetches weather data from an external service.
File structure
• Top level:
• .gitignore, README.md
• /client: React project (package.json, src/, public/, build/)
• /server: Node/Express project (package.json, src/, app.js)
• client/src:
• actions/, reducers/ → Redux architecture.
• components/ (AddForm, Weather, WeatherList, App) → presentational and container components.
• constants/ (action types, initial state, server URL).
• server/src:
• config.js → configuration (e.g., API keys, ports).
• routes/index.js → routing layer.
• controllers/ → business logic (cityController, weatherController).
• models/WeatherCity.js → data model (in-memory or schema).
• No internal database folder, so persistence is probably in memory or delegated to external API.
README
• Minimal instructions for launching client and server.
Details to capture
• Redux action flow: Action → Middleware/Thunk → HTTP request
• Routes (e.g., /api/weather) mapped to controllers
• Config.js for API keys and port settings
• If using serviceWorker, indicate offline capability node in client layer