kandy-cpaas2-sample-angular

Kandy CPaaS2 sample in Angular
It is an audio/video chat application made using Angular 5 or above.
Note: It has been currently tested successfully with version 5 & 6.
User manual
- Create an account on AT&T portal via Register now for a free account.
- Open 2 instances of
index.html in the browser for User1 and User2.
- Enter the server URL, for e.g.,
- Choose to get accessToken by Password Grant flow or Client Credentials flow.
- Login using two different users’ credentials in both the browser windows.
- For Password Grant flow, enter
- clientId
- emailId
- password
- For Client Credentials Grant flow, enter
- Click Login
- After successful login you will get an accessToken for Project/User on both tabs.
- Click Subscribe button in both the browser windows to create the webrtc channel.
- Enter the User2’s User ID into the User1’s browser window in the input field under Make Call section; e.g., sip:janedoe@somedomain.com (sip:[userId]@[domain]) or you may also call the TN in the E164 format sip:+12223334444@domain
- Select the with video check box to make video call or uncheck for voice call.
- On User2’s window you will find an incoming call, now click on Answer Call button to answer the call or Reject Call button to reject the call.
- After selecting Answer Call, the call is started and the remote view and local view can be checked.
- To end the conversation, you can click End Call button.
Notes
Development
You need to follow the pre-requisite, after which you would be ready for development stage and later on you can generate production build.
Pre-requisite
You need to install Angular CLI to run all ng commands using npm command.
Setup
To setup the project repository, run these commands
git clone https://github.com/hclsampleapps/kandy-cpaas2-sample-angular.git
cd kandy-cpaas2-sample-angular
npm install
Start server
-
Using ng
- Run
ng serve for a dev server.
- Navigate to
http://localhost:4200/.
- The app will automatically reload if you change anything in source file.
-
Without using ng
- Run
npm run start directly if you are not using Angular CLI in case.
- It will navigate to
http://localhost:4200/.
Build
- Run
ng build or npm run build to build the project.
- The build artifacts will be stored in the
dist/ directory.
- Use the
-prod flag for a production build.
Branching strategy
To learn about the branching strategy, contribution & coding conventions followed in the project, please refer GitFlow based branching strategy for your project repository
References
To get more help on the Angular CLI