This project is a simple weather journal app that allows users to retrieve weather information based on their ZIP code, record their feelings, and dynamically update the UI with the retrieved data. The app uses the OpenWeatherMap API to fetch weather data and an Express server to handle POST and GET requests.
- Retrieve weather data based on user-entered ZIP code.
- Allow users to record their feelings.
- Store weather data and user input on the server.
- Dynamically update the UI with the retrieved data.
Node.js installed on your local machine.
- Clone the repository to your local machine.
- Install dependencies: npm install
- Sign up for an OpenWeatherMap API key
- Start the server: node server.js
- Open the 'index.html' file in the web browser.
- Enter a ZIP code in the input field labeled "Enter ZIP code".
- Enter your feelings in the input field labeled "How do you feel today?".
- Click the "Generate" button to fetch weather data and update the UI with the retrieved data.
- 'server.js': Sets up an Express server with routes to handle GET and POST requests.
- 'app.js': Contains the logic to fetch weather data from the OpenWeatherMap API, send data to the server, and update the UI.
- 'index.html': The main HTML file containing the structure of the app.
- 'styles.css': The CSS file for styling the app.