This script show you the current temperature based on the location of your public IP address.
Clone this repo:
git clone git@github.com:vcgtz/weather_app.git
Install dependencies:
cd weather_app
npm install
Then you need to generate a .env
file:
cp .env.example .env
This project uses the following APIs:
So, before run this app, you need to get an API KEY from Open Weather and IPStack and set them in your .env
file.
Just run this command:
node index.js
And you'll see something like this:
The location is not exact, it is based on your public IP address. If you're using a proxy or VPN, you'll see a different location than where you are.