Skip to content
Snippets Groups Projects

MyUW app framework local configuration for local running

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Andrew W Petro

    Changes to apply locally to get app-framework working locally.

    Proposed for inclusion in the real app-framework documentation in https://git.doit.wisc.edu/wps/myuw-service/myuw-legacy/uportal-app-framework/-/merge_requests/1087 .

    Edited
    changes-to-get-app-framework-working-locally.md 999 B

    Changes to get app-framework working locally.

    WARNING: we don't want these changes in the actual app-framework in source control, because we don't want these settings to be the default when we build on app framework and deploy it to our servers. That's why there's this hassle of having to locally modify these settings.

    And yet, it's very convenient to run app-framework locally for development. So here's what you'll need to locally set to get it working better locally:

    In components/js/app-config.js:

    • set SERVICE_LOC.groupURL to 'staticFeeds/groups.json' .
    • set SERVICE_LOC.portalLayoutRestEndpoint to '/portal/api/layout' .
    • set SERVICE_LOC.widget.entry to 'staticFeeds/' .

    In components/js/override.js:

    • set SERVICE_LOC.sessionURL to '/staticFeeds/session.json' .
    • set SERVICE_LOC.context to '/staticFeeds' .
    • set SERVICE_LOC.base to '/staticFeeds/' . (Yes, context and base differ by a slash. Sorry.)
    • set SERVICE_LOC.groupURL to '/staticFeeds/groups.json'
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment