[SDC-29] catalog 1707 rebase commit.
[sdc.git] / catalog-ui / README.md
1 # CatalogUi
2
3 ## Development server
4 Run "npm start" for a dev server. 
5 Navigate to "http://localhost:9000/". 
6 The app will automatically reload if you change any of the source files.
7
8 --- Specify role ---
9 npm start -- --env.role designer
10
11 npm run <role>
12
13 ## Build
14 --- dev ---
15 Run "npm run build" to build the project. 
16 The build artifacts will be stored in the `dist/` directory. 
17
18 --- prod ---
19 Run "npm run build:prod" to build the project. 
20 The build artifacts will be stored in the `dist/` directory. 
21
22 ## Configuration
23 Dev server is configured in webpack.server.js file.
24 App configuration dev.js or prod.js and menu.js are located in configuration folder and required by app.ts according to __ENV__ parameter from webpack.
25
26 ## Running unit tests
27 ## Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
28
29 ## Running end-to-end tests
30 ## Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
31 ## Before running the tests make sure you are serving the app via `ng serve`.
32
33 -- Working with WebStorm -- 
34
35 go to File --> Settings --> Languages & Frameworks
36
37 Under JavaScript -> set JavaScript language version to ECMAScript6
38 Under TypeScript -> select 'Enable TypeScript Compiler' and choose 'Use tsconfige.json'
39