This project is a sample of using DaVinci API to integrate a channel into the DaVinci Platform. This project was original generated with Angular CLI version 7.3.0.
This project generates fake calls to a list of phone number and passes the information to the DaVinci api. The important files are app.component.ts and call.component.ts.
To test run the project with ng serve then in Creators Studio create an app with the URL pointing to you local server, http://localhost:4200/ by default, and the position set to 'Center[tabs]'.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
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.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
-
Open a terminal window and navigate to the folder containg this project.
-
npm install (install dependencies)
-
ng serve -o (start the project and open it)
-
A browser window should open at localhost:4200
-
Open the creators studio (https://studio-dev.contactcanvas.com) and navigate to the Edit Apps Section
-
Create a new app with the name "SampleChannelApp"
-
Navigate to the configurations of the app you just created and enter the url configuration as (http://localhost:4200)