A simple application that searches for the temperature of a place based on zipcode. Works only for US zipcode.
- Install Node
- Set up Node environment with Express
- Install Cors and Body-Parsers dependencies
- Setup Server with GET and POST routes
- Create developer credentials for Web API on OpenWeatherMap
- Use Fetch API and user input to dynamicly get data
- Access a GET route on the server side with Endpoint Data
- Use asynchronous funtion to fetch Endpoint Data on client side
- Chain Promises together to get desired result
- POST data and update app on client side
- User HTML elements with JS to set properties dynamically
- Debug and clean up code
To install the application it is necessary to have the Node installed on your machine. Please make sure to enter your own APIKey.
At the root of the application install the dependenciesnpm install
Initialize the server
node server.js
Access the localhost on port 5500
http://localhost:5050/