09a1641315bd5cef95edfb4698efd3eb9d75ea26
[portal/nonrtric-controlpanel.git] / webapp-frontend / README.md
1 # Non-RT RIC Control Panel Web Application Frontend
2
3 ## Development server
4
5 Run `./ng serve --proxy-config proxy.conf.json` or `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
6
7 You may also need to Start the Control Panel Gateway, Policy Management Service & EI Coordinator if you want to view the data in UI.
8
9 ## Development server with Mock Data
10 Run `npm run start:mock` for a dev server with mock data. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. This enables the developer to test the UI without the need of backend.
11
12 ## Build
13
14 Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
15
16 ## Running unit tests
17
18 Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
19
20 ## Running end-to-end tests
21
22 Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
23
24 ## License
25
26 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
27 Modifications Copyright (C) 2019 Nordix Foundation
28 Modifications Copyright (C) 2020 Nordix Foundation
29 Licensed under the Apache License, Version 2.0 (the "License");
30 you may not use this file except in compliance with the License.
31 You may obtain a copy of the License at
32
33      http://www.apache.org/licenses/LICENSE-2.0
34
35 Unless required by applicable law or agreed to in writing, software
36 distributed under the License is distributed on an "AS IS" BASIS,
37 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38 See the License for the specific language governing permissions and
39 limitations under the License.