Skip to content

Demo application to use the weather widgets component library (Vue)

Notifications You must be signed in to change notification settings

ionic-enterprise/ionic-weather-vue

Repository files navigation

Ionic Weather - Vue

The primary purpose of this application is to be a test consumer of the Demo Weather Widgets component library.

Obtaining a Key

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.

Building

Once you have a key, follow the usual build steps:

  1. Clone the repo and cd into the project.
  2. Create the src/use/keys.json file as noted above.
  3. npm i
  4. npm run build
  5. 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.

About

Demo application to use the weather widgets component library (Vue)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published