X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2Fdeveloper-guide.rst;h=afe1a24e1215d2f375f679ac5c3e10ae07ce5be4;hb=fb9a5699b247ad1518c5714224396205485a3c4c;hp=8dc48fbd12b1af193c92b9b1316b67d847e2dc83;hpb=22cfc3d48f2c8fdd395d820d623c11924af960f8;p=portal%2Fnonrtric-controlpanel.git diff --git a/docs/developer-guide.rst b/docs/developer-guide.rst index 8dc48fb..afe1a24 100644 --- a/docs/developer-guide.rst +++ b/docs/developer-guide.rst @@ -1,5 +1,6 @@ .. This work is licensed under a Creative Commons Attribution 4.0 International License. .. SPDX-License-Identifier: CC-BY-4.0 +.. Copyright (C) 2020 Nordix Developer Guide =============== @@ -18,30 +19,29 @@ To run the Control Panel locally for development with simulated services, follow - Fetch the latest code from `gerrit`_ -.. _gerrit: https://gerrit.o-ran-sc.org/r/admin/repos/nonrtric-controlpanel - -- Start the backend: - - cd webapp-backend - - mvn clean install - - mvn -Dorg.oransc.portal.nonrtric.controlpanel=mock -Dtest=ControlPanelTestServer -DfailIfNoTests=false test - - -- Now you can open URL: `localhost:8080`_ in a browser to access the backend directly. - -.. _localhost:8080: localhost:8080 +.. _gerrit: https://gerrit.o-ran-sc.org/r/admin/repos/portal/nonrtric-controlpanel Start the frontend: cd webapp-frontend - - ./ng serve --proxy-config proxy.conf.json + + To start the frontend with Mock data: + + npm run start:mock + + To start the UI: + + You need to start the ControlPanel API Gateway, Policy Management Service & EI Service for the UI to list policy & EI information + + ./ng serve --proxy-config proxy.conf.json + + OR + + npm start - Now you can open URL: `localhost:4200`_ in a browser to access the Control Panel. -.. _localhost:4200: localhost:4200 +.. _localhost:4200: http://localhost:4200 From the main page, click on the "Policy Control" card. From here, it is possible to create or list instances for each existing policy type.