This project requires you to create an asynchronous web app that uses Web API and user data to dynamically update the UI for a Weather-Journal App.
- The app uses the OpenWeatherMap API to fetch weather data for a specific location based on its latitude and longitude.
- Users can enter their zip code and how they are feeling in the provided input fields.
- When the "Generate" button is clicked, the app makes a POST request to the server with the weather data and user input.
- The server stores the data in a
projectData
object and sends a success message back to the client. - The app then updates the UI with the retrieved data from the server.
- Node.js
- Express.js
- HTML
- CSS
- JavaScript
To run this app locally, you need to have the following installed on your machine:
- Node.js (with npm)
- Clone this repository to your local machine using:
git clone [email protected]:yousefkullab/weather-journal.git
. - Navigate to the project folder:
cd weather-journal
. - Install the required npm packages:
npm install express body-parser cors
. - Start the server:
node server.js
. - Open your web browser and go to
http://localhost:3000
to access the app.
To use the OpenWeatherMap API, you need to sign up for an API key. Replace 'YOUR_API_KEY' with your actual API key in the app.js
file.
© Yousef Kullab