You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Register and obtain the [FlightStats Developer API](https://developer.flightstats.com/signup) and [TripIt Developer API](https://www.tripit.com/developer/create) to query flight status.
@@ -54,6 +53,39 @@ Otherwise, fill in the **OpenWhisk Auth** variable to enable serverless for your
54
53
Then, click **View logs and history** in your pipeline to access your application via the URL link at the end of your logs.
|[flightassist.js](flightassist.js)| Main application, start the express web server and calling the major AJAX functions|
72
+
| All Javascript files (*.js) | The implementation of the flightstats and tripIt information, shared by all deployment options |
73
+
|[app.py](flightassist-weather/scr/app.py)| Weather Microservice, query and sent weather information to the main application |
74
+
|[package.json](package.json)| List the packages required by the application |
75
+
|[Dockerfile.local](Dockerfile.local) and [Dockerfile.alpine](flightassist-weather/Dockerfile.alpine)| Description of the Docker image |
76
+
|[flightassist.yaml](flightassist.yaml) and [secret.yaml](secret.yaml)| Specification file for the deployment of the service and secret in Kubernetes |
|[flightassist.js](flightassist.js)| Main application, start the express web server and calling the major AJAX functions|
83
+
|[weather.js](weather.js)| Trigger actions in OpenWhisk to get the weather information |
84
+
| All Javascript files (*.js) | The implementation of the flightstats and tripIt information, shared by all deployment options |
85
+
|[package.json](package.json)| List the packages required by the application |
86
+
|[Dockerfile.local](Dockerfile.local)| Description of the Docker image |
87
+
|[flightassist_serverless.yaml](flightassist_serverless.yaml) and [secret.yaml](secret.yaml)| Specification file for the deployment of the service and secret in Kubernetes |
88
+
57
89
# Steps
58
90
1.[Create your Cloudant Database and Insights for Weather Service](#1-create-your-cloudant-database-and-insights-for-weather-service)
Next, modify the secret.yaml file with **flightstats-app-id**, **flightstats-app-key**, **tripit-api-key**, and **tripit-api-secret**.
208
+
Next, create secret to give FlightStats and TripIt API credentials for Flightassist. Modify the secret.yaml file with **flightstats-app-id**, **flightstats-app-key**, **tripit-api-key**, and **tripit-api-secret**.
177
209
178
210
Then, edit the `flightassist.yaml` and replace the ```<namespace>``` with your own namespace. You can obtain your namespace by running `bx cr namespace`. Also replace `<your-app-end-point-url>` with your node ip and nodeport (e.g. 169.47.237.139:30080). You can obtain your IP by running `kubectl get nodes` and your nodeport is 30080.
0 commit comments