React Local installation and setup - kwantu/platformconfiguration GitHub Wiki

  1. Open init.js using ctrl+p, make sure var lce = "https://" + /* @mangle / "dev.kwantu.support/exist/rest" / @/mangle */; pointing to dev.kwantu.support

  2. Copy all contents of package-react.json and override package.json

  3. Open config.json under src directory, go to object where url="http://localhost:3000", update hubCode

Example

{
    "name": "NGO",
    "hubCode": "ngo",
    "registrationText":"Complete the form to register for an account on the client management. You will receive an email or SMS with your account details.",
    "showCancelButton": true,
    "openFirstCard": true,
    "chatEnabled": false,
    "url": "http://localhost:3000",
    "initialPath": "/",
    "description": "This is NGO local hub",
    "icon": "https://example.com/icon.png"
}

Sample hubcodes

NGO community with NGO application and UF application - ngo Destea community with Client Management application - client SEF community with Site Managemebt application - sef Care community - care GRM community - grm NLGFC community - nlgfc

Please consult with Ravi to get all the application names and application id to extract the applicationConfig_{appId} to find layoutV2 for that application.

  1. On the root of the project ehich is mobile1.8 run command

npm install

  1. Start application

npm start

Once you switch the browser to mobile view and refresh the application will load mobile pages