To define permanent environment variables, create any one of these files called .env.development.local, .env.development, .env.local, .env
in the root of project.
Add the below line in the above created file.
REACT_APP_OPENWEATHER_API_KEY=Your API key of OpenWeather
e.g. for me OpenWeather API key is 204e3a99e4a83d9ba132d3b8c0703ff1
declared in .env.development.local
In the project directory, run the following:
npm install
Modules that depend on package.json are listed.
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.