- EC Web UI based on Bootstrap and REACT.
- Agent v1.1beta #1686+
- Browser compatibility matrix
- Facebook REACT v16+
- Bootstrap UI v4.3.0+
- EC Agent v1.1beta v1686+
# follow the example ```--env-file``` below
# https://github.com/Enterprise-connect/oci/blob/v1.1beta/spec/web-ui/run.env
docker run -p 17990:17990 -p 17991:17991 --env-file run.env \
-it enterpriseconnect/webui:v1.1beta
# you may utilise docker as the package system to test out the UI
# make sure the webui artifact from the step 1 exists in the root folder-
# of the repo before you run the command
docker run -p 17990:17990 -p 17991:17991 -v </path/to/local/webui/repo>:/build \
--env-file run.env -it enterpriseconnect/webui:v1.1beta
# get the webui binary
wget -O ./webui_linux_sys.tar.gz https://raw.githubusercontent.com/Enterprise-connect/sdk/v1.1beta/dist/webui/webui_linux_sys.tar.gz \
&& tar -xvzf ./webui_linux_sys.tar.gz
#clone the repo
git clone --recursive <xcalr-webui-repo>
#launch the app
./webui_darwin_sys -mod api -pks <private-key> -pbk <certificate> \
-oa2 http://localhost:17991 -app ec
When first lauch the app, it will prompt to enter the passphrase. Please contact the team for your beta subscription.
open http://localhost:17990/v1.1beta/ec
UI example
Unit testing is a way of testing the smallest piece of code (Components) that can be logically isolated in a system. It is mainly focused on the functional correctness of standalone modules.
Jasmine
Jasmine is an open-source JavaScript framework, capable of testing any kind of JavaScript application. Jasmine follows Behavior Driven Development (BDD) procedure to ensure that each line of JavaScript statement is properly unit tested. Official Doc @ https://jasmine.github.io/
Step 1. Go to project folder in terminal. Step 2. run npm install (If you are doing for first time. That will create and install all the dependent packages used for unit testing) Step 3. run npm test (It will automatically run the test cases and produce the result)
Automation Testing is the process of using the assistance of tools, scripts, and software to perform test cases by repeating pre-defined actions. Test Automation focuses on replacing manual human activity with systems or devices that enhance efficiency.
Protractor
Protractor is an end-to-end test framework for applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would. Official Doc @ https://www.protractortest.org/
Step 1. Go to project folder in terminal. Step 2. Run npm install -g protractor (If you are doing for first time. That will create and install all the dependent packages used for automation testing) Step 3. Open project-folder/protractor/todo-spec.js. Find "Place your login id" and replace with your login id and find "Place your login password" and replace with your password. Step 4. Open one terminal at project-folder/protractor and run webdriver-manager update after that run webdriver-manager start at the same terminal ( do not close this terminal). Step 5. Open another terminal at project-folder/protractor and run protractor conf.js (it will start testing the application and opens the browser automatically)
JSHint is a static code analysis tool used in software development for checking if JavaScript source code complies with coding rules. Official Doc @ https://jshint.com/docs/
Step 1. Go to project folder in terminal. Step 2. Run "npm install -g jshint" (If you are doing for first time. After this, you can use the jshint command-line interface) Step 3. Run "npm install --save-dev jshint" (If you are doing for first time. That will create and install all the dependent packages) Step 4. To test run "npm run jshint"
Package used: Vis.js Official Website: https://visjs.org Implementaion Help: https://visjs.github.io/vis-network/examples/network/basic_usage/standalone.html
- OAuth2 Provider UI by the agent: https://github.build.ge.com/Enterprise-Connect/oauth2-webui
- EC Agent sdk: https://github.com/Enterprise-connect/ec-x-sdk/releases/tag/v1.1beta.fukuoka.1686
- xcalr APIs: (non-TLS) http://demo-ec-531885193.us-east-2.elb.amazonaws.com/v2beta/swagger-ui.html