Coder Social home page Coder Social logo

web-ui's Introduction

Build Status

web-ui

  • EC Web UI based on Bootstrap and REACT.

Runtime Requirement:

Development Requirement:

How to run

The easy way

# 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

The YKWTD way (you-know-what-to-do)

# 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

Credential

When first lauch the app, it will prompt to enter the passphrase. Please contact the team for your beta subscription.

How to browse

open http://localhost:17990/v1.1beta/ec

Development WIP

OAuth2 login

OAuth2 flow

UI example

UI example

Unit Tesing

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.

Package Used For Unit Testing

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/

How To Do Unit Test

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)

Example Result From Unit Test

Demo test result

Automation Testing

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.

Package Used For Automation Testing

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/

How To Do Automation Testing

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). Demo webdriver-manager update and start 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)

Example Result From Automation Testing

Demo automation test result

JSHint Testing

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/

How To Do JSHint Testing

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"

Topology Graph

Package used: Vis.js Official Website: https://visjs.org Implementaion Help: https://visjs.github.io/vis-network/examples/network/basic_usage/standalone.html Demo Topology graph implemeted in project

Reference:

web-ui's People

Contributors

subhash-vishwakarma avatar vidya22022 avatar ayasuda-ge avatar iamkoushikpal-ge avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.