diff --git a/README.md b/README.md index 426492b..b306c22 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A no-frills PWA (Progressive Web Application) to demonstrate various caching and ### Setup -This project bootstraps from the [Monaca](https://monaca.io/)'s PWA template. While a Monaca account isn't needed to preview or build the app, a free account is needed to use some of the features of the monaca-cli tools, and to publish the app to their cloud hosting. +This project bootstraps from [Monaca](https://monaca.io/)'s PWA template. While a Monaca account isn't needed to preview or build the app, a free account is needed to use some of the features of the monaca-cli tools, and to publish the app to their cloud hosting. _the developer isn't affiliated or paid to endorse Monaca; "I just think that their tools are cool!"_ The app is designed to use the [News API](https://newsapi.org/) to pull top news stories from the Google news feed agregator. @@ -54,4 +54,4 @@ Look to the console to see: _Access the Browswersync UI @ `http://localhost:8081`_ Open the `External` URL on your mobile devices browser to see the App. Interactions between the development browser and the mobile device will be sync'd via the awesome magic of the [Browsersync](https://www.browsersync.io/) integration. -Use the 'Add to Home Screen' or similar feature of the mobile device browser to psudo-"_Install_" the PWA app to the device. A new icon will be added to the device home screen. Clicking the newly added icon will open the app in true PWA application mode. Notice the lack of a browser address bar, etc. +Use the 'Add to Home Screen' or similar feature of the mobile device browser to psudo-"_Install_" the PWA app to the device. A new icon will be added to the device home screen. Clicking the newly added icon will open the app in true PWA application mode. Notice the lack of a browser address bar, etc. \ No newline at end of file diff --git a/www/script/main.js b/www/script/main.js index b4114c2..11cbacf 100644 --- a/www/script/main.js +++ b/www/script/main.js @@ -1,4 +1,4 @@ -const API_KEY = process.env.API_KEY +const API_KEY = (your API key will go here, without parenthesis!) const source = 'google-news' const url = 'https://newsapi.org/v2/top-headlines?sources=' + source + '&apiKey=' + API_KEY