This project was generated with Angular CLI version 1.0.0.
- Copy file
index.tpl.html
and rename it toindex.html
(in the same path) - Fill all params at the new file.
- Run
ng serve
for a dev server. - Navigate to
http://localhost:4200/dev
- Open folder 'kaltura-typescript-client-custom' in terminal.
- Run npm link
- Open application root folder (where package.json exists).
- Run npm link kaltura-typescript-client
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.
- Open terminal and move to project's folder.
- Run the following build command:
ng build -bh /apps/liveDashboard/{version} --env=prod
where {version} is the version of the build (e.g. v0.1.20). - Remove the folder
dev
from the newdist
folder that was created after the build. - Rename
dist
folder to the version name. - Zip the renamed folder.
- Go to kmc-live-dashboard repository in GitHub.
- Under
releases
locate the desired version you wish to deploy. - Download the zip file do the following directory:
/opt/kaltura/apps/liveDashboard
. - Unzip the file and make sure folder contains the bew version (e.g. /opt/kaltura/apps/liveDashboard/v0.1.20).
Note: In order for KMC to run the new version it must match the liveDashboard version in the base.ini configuration file!
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
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.