This is a weather application to test the D2L free range framework.
##Prerequisites##
- Run
npm ito install the required node modules.
###Build to Localhost### These steps create an appconfig file that points to your localhost, and publishes the app resources to the localhost.
Prerequisites
- Clone the Dev AppRegistry Config into your instance's
checkoutdirectory. - Run a build so that your instance picks up the Dev AppRegistry Config.
Process
- Run
npm run build. This builds the UMD module and creates the local appconfig file. - In a separate terminal window, run
gulp appresolver. This will host/resolve the app onhttp://localhost:3000/resolve/woosh-weather. - In your browser, log in to your LMS and access the app by changing the URI to
/d2l/apps/woosh-weather.
These steps create an appconfig file that points to the CDN, and publishes the app resources to the CDN.
Prerequisites
- If the app has already been published, bump up the version in the
devTagfield of the gulpfile.js because you cannot publish the same version of the app. - To publish the app to the CDN, you must add your app key and secret to the
credsin the gulpfile. DO NOT PUBLISH THE KEY OR SECRET.
Important: DO NOT PUBLISH THE SECRET. The secret is actually set and stored locally for the project via a Node command--Only Barb has this info.
Process
To test and run on the CDN:
- Run
npm run build:release. This builds the UMD module and creates the appconfig file for the CDN. - Run
gulp publish. This publishes the app to the CDN. - Run
gulp finishto create a JSON file to integrate with your LMS. - Copy that JSON file to your instance in the
<instance>\config\AppLoader\Appsfolder. - In your browser, log in to your LMS and access the app by changing the URI to
/d2l/apps/hellobarb.
Note: You may have to recycle your AppPool to pick up the changes.