This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
Once you clone or download this app, run npm install
in the command line directory to download all dependencies.
Also, this app uses an environment variable. Read more about environment variables here. This environment variable is used to store the weather API key. You can get yours by signing up at https://weatherstack.com/.
The name of the environment variable is (REACT_APP_API_KEY). Assuming your key is t0p53cr3t4p1k3yv4lu3, you can set it by creating a .env file in the app directory and declare the variable in it. For example: REACT_APP_API_KEY = t0p53cr3t4p1k3yv4lu3.
Or you can temporarily declare it at runtime (when starting the app):
REACT_APP_API_KEY=t0p53cr3t4p1k3yv4lu3 npm start // For Linux/macOS
Bash($env:REACT_APP_API_KEY=t0p53cr3t4p1k3yv4lu3) -and (npm start) // For Windows PowerShell
set REACT_APP_API_KEY=t0p53cr3t4p1k3yv4lu3 && npm start // For Windows cmd.exe
The APIs used where from https://restcountries.eu/ and https://weatherstack.com/.
Enjoy, Explore & Analyze. Have Fun!!