The primary purpose of this application is to be a test consumer of the Demo Weather Widgets component library.
This application requires that you have an Open Weather Map API key. They offer a free tier with generous enough access for the requirements of this application. Once you have the key, you need to create a src/use/keys.json
with the key specified as such:
{
"openWeatherMap": "YOUR-KEY-HERE"
}
Note: this is not a highly secure way to keep an API key safe. This keeps the key out of the GitHub repo, but that is it. If you need a secure mechanism to store sensitive information, you should be using a tool such as Ionic's Identity Vault.
Once you have a key, follow the usual build steps:
- Clone the repo and
cd
into the project. - Create the
src/use/keys.json
file as noted above. npm i
npm run build
npm run serve
To run on a device or emulator:
ionic cap run ios
ionic cap run android
Note: to run on an iOS device, you need to open the project in Xcode at least once so you can select your team to specify your cert, etc.