tree: 2739159e6154d7de25cfcb716c86f33ab9098310 [path history] [tgz]
  1. .storybook/
  2. external-resources/
  3. resources/
  4. src/
  5. test/
  6. test-utils/
  7. tools/
  8. webapp-heat-validation/
  9. webapp-onboarding/
  10. .babelrc
  11. .editorconfig
  12. .eslintignore
  13. .eslintrc
  14. .gitignore
  15. .prettierrc
  16. devConfig.defaults.json
  17. index.js
  18. package.json
  19. pom.xml
  20. proxy-server.js
  21. README.md
  22. webpack.config.js
openecomp-ui/README.md

ASDC - Amdocs Onboard UI App

Setup

###Install npm

Install npm v6.

###Install Node.js

Install node v10.17.0 (as in the pom.xml v10.17.0).

Install gulp

install gulp by running the following command npm install --global gulp-cli

Build

Install DOX-UI

  • pull for latest changes
  • go to folder ../dox-sequence-diagram-ui
  • run npm install && npm run build

Install onboarding-fe

  • go to the current project folder openecomp-ui
  • run npm install
  • create a copy of devConfig.defaults.json file and name it devConfig.json (it is already configured to gitignore, so it will not be pushed)
  • in devConfig.json:
    • set "proxyCatalogTarget" to the URL of the sdc-frontend; set "proxyTarget" to the URL of the sdc-onboard-backend (pay attention, it is a JSON file):

      For example http://<host>:<port>

  • run npm start
  • your favorite UI will wait for you at: http://localhost:9000/sdc1/#!/onboardVendor

Troubleshooting

ProblemWhy is this happeningSolution
Build (npm install) errornpm/node_modules cacheIf having problems with the compilation of dox-sequence-diagram-ui and openecomp-ui, delete the node_modules and package-lock.json in each respective projects folder.
npm cannot reach destinationproxyWhen within managed network, you should set your proxy to NPM as the following:
npm config set proxy http://<host>:<port>
npm config set https-proxy http://<host>:<port>
git protocol is blocked and cannot connectmanaged network rules for protocolsWhen within managed network, you should set globally that when git protocol is used, then it will be replaced with "https"
git config --global url."https://".insteadOf git://