A back-end program, that can forward the user's request to a weather API server, and return the answer to the user.
- Node.js
- HTML5
Clone the repository:
git clone https://github.com/ArpadGBondor/The_App_Brewery-Back-end_project_02-Weather_API.git
Enter directory:
cd The_App_Brewery-Back-end_project_02-Weather_API/
Download the missing dependencies from npm:
npm install
Get your own API key (sry, I won't share mine... )
Register here: https://openweathermap.org/api
Create a file named '.env' and set this enviroment variable:
WEATHER_API_KEY=
Run program:
node app.js
Send get request from browser:
Open: http://localhost:3000