SPDX-License-Identifier: BSD-3-Clause-Clear

Copyright (c) 2018 Qualcomm Technologies, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Qualcomm Technologies, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

DVS Front-end

Documentation

DVS-API-Installation-Guide-1.0.0.pdf
DVS-SPA-Installation-Guide-Authority-App-1.0.0.pdf
DVS-SPA-Installation-Guide-Public-App-1.0.0.pdf
DVS-Authority-Web-App-UserGuide-1.0.0.pdf
DVS-Public-Web-App- User-Guide-1.0.0.pdf
DVS-Developer-Guide-iOS-App-Authority-1.0.0.pdf
DVS-Developer-Guide-iOS-App-Public-1.0.0.pdf
DVS-Developer-Guide-Android-App-Authority-1.0.0.pdf
DVS-Developer-Guide-Android-App-Public-1.0.0.pdf
DVS-Authority-Mobile-App-User-Guide-1.0.0.pdf
DVS -Public-Mobile- App-User-Guide-1.0.0.pdf

Frontend Application Repo

Device-Verification-Subsystem-Public-Frontend

Backend Application Repo

Device-Verification-Subsystem

Mobile Application Repos

Device-Verification-Subsystem-Authority-Android
Device-Verification-Subsystem-Public-Android
Device-Verification-Subsystem-Authority-iOS
Device-Verification-Subsystem-Public-iOS

Prerequisites

- Node v8.9.4 or greater
- NPM v5.6.X or greater
- Nginx 1.14.X

Supported Browsers

Chrome 63.0 (Recommended)
Internet Explorer 11.0
Firefox 52.5 ESR, 57.0
Safari 11.0
Edge 41.16299

Setup

To Install this code on your local system

cd /path/to/install/location
git clone https://github.com/dirbs/Device-Verification-Subsystem-Frontend.git

Install dependencies

npm install

APIMan, Keycloak and API Configurations

cd src/settings.json
{
  "appDetails": {
    "appName": "APP_NAME", // configure Application name, make sure that this appName must be same as mentioned in Keycloak roles, e.g. dvs_authority
    "supportEmail": "support@example.com", // configure this email as it will be visible for unauthorized user
    "supportNumber": "+923001234567" // // configure this contact number as it will be visible for unauthorized user
  },
  "api": {
    "host": "http://SERVER_IP", // Configure API Host e.g. http://www.api-example.com
    "port": "PORT_NUMBER", // Configure API Port e.g. 3000
    "version": "VERSION_OR_SUBPATH", // Configure API Version e.g. /api/v1/
    "use": true // for directly hitting API, make it *True*
  },
  "apiman": {
    "host": "http://SERVER_IP", // configure Apiman Host e.g. http://www.apiman-example.com
    "port": "PORT_NUMBER", // Configure Apiman Port e.g. 8000
    "clientId": "CLIENT_ID_OR_SUBPATH", // configure clientID e.g. /apiman-gateway/example/appname/1.0
    "use": false // for hitting Apiman Gateway directly, make it *True*
  }
}

Note: Copy keycloak.json file into public directory. Refer to KeyCloak documentation.

Serve with hot reload (watch changes instantly) at localhost:3000

npm start

Build for production with minification

npm run build