kholisabdullah / Device-Verification-Subsystem-Public-Frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/* SPDX-License-Identifier: BSD-4-Clause-Clear Copyright (c) 2018-2019 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.
  • All advertising materials mentioning features or use of this software, or any deployment of this software, or documentation accompanying any distribution of this software, must display the trademark/logo as per the details provided here: https://www.qualcomm.com/documents/dirbs-logo-and-brand-guidelines
  • 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.

SPDX-License-Identifier: ZLIB-ACKNOWLEDGEMENT Copyright (c) 2018-2019 Qualcomm Technologies, Inc. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  • The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment is required by displaying the trademark/logo as per the details provided here: https://www.qualcomm.com/documents/dirbs-logo-and-brand-guidelines
  • Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  • This notice may not be removed or altered from any source distribution.

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-Public 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-Authority-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

Google Recaptcha and API Configurations

Note For Windows users manually make a copy of settings-template.json in src directory and name it settings.json.

cp src/settings-template.json src/settings.json

Update all the configs into the file.

{
  "api": {
    "host": "http://192.168.100.58", // Configure API Host e.g. http://www.api-example.com
    "port": "8080", // Configure API Port e.g. 3000
    "version": "/apiman-gateway/DIRBS/dvs-public/1.0" // Configure API Version e.g. /api/v1/
  },
  "googleRecaptcha": {
    "secretKey": "6Ldwv5sUAAAAAOpJ9M947jCnpxK93A2i3puMUKeQ" 
  },
  "appDetails":{
    "defaultLanguage": "es" // Configure default language of the application
  }
}

Note: For Google reCaptcha configuration . Refer to Google reCAPTCHA documentation.

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

npm start

Build for production with minification

npm run build

About

License:Other


Languages

Language:CSS 50.1%Language:JavaScript 48.1%Language:HTML 1.9%