Mock the backend API calls
[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 ## Development server with Mock Data
8 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.
9
10 ## Build
11
12 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.
13
14 ## Running unit tests
15
16 Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
17
18 ## Running end-to-end tests
19
20 Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
21
22 ## License
23
24 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
25 Modifications Copyright (C) 2019 Nordix Foundation
26 Modifications Copyright (C) 2020 Nordix Foundation
27 Licensed under the Apache License, Version 2.0 (the "License");
28 you may not use this file except in compliance with the License.
29 You may obtain a copy of the License at
30
31      http://www.apache.org/licenses/LICENSE-2.0
32
33 Unless required by applicable law or agreed to in writing, software
34 distributed under the License is distributed on an "AS IS" BASIS,
35 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36 See the License for the specific language governing permissions and
37 limitations under the License.