npm start
for a dev server.To Specify the user role:
npm start --env.role designer
npm run <role>
Run npm run build
to build the project.
The build artifacts will be stored in the dist/
directory.
Run npm run build:prod
to build the project.
The build artifacts will be stored in the dist/
directory.
Development server is configured in /webpack.server.js
file. Configure the constants accordingly:
The server will create a proxy to the front end calls based on the feHost and fePort.
It will also create authorization cookies to those requests. The cookies and user information comes from the /configurations/mock.json
file under the nodes sdcConfig.cookie
and sdcConfig.userTypes
respectively.
The default user role is the node sdcConfig.userTypes.designer
(configurable with the npm parameter --env.role).
Application 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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
Enable TypeScript Compiler
and choose Use tsconfige.json