chief-complaint

0.1.0 • Public • Published

Documentation

Deploying a react app into the sap/approuter

To deploy a react app in the app router some things needs to be adjusted in the building process so that it works:

  1. Use the default application structure that is used for UI5 apps and delete all UI5 related configs from the ui folder and replace it with the react ones. After add the next adjustments.
  2. Adapt the manifest.json in ./public/. The manifest needs to contain the following json model:
     "sap.app": {
         // the app id
         "id": "com.cerner.scp.augero.spv.singlepatientview",
         "applicationVersion": {
         "version": "1.0.0"
         }
     }
  3. create a .env file in the root. The env file needs to set the PUBLIC environment variable to match the id set above:
     PUBLIC_URL=/comcernerscpaugerospvsinglepatientview
    All dots and minuses needs to be removed from the ID.
  4. Implement the npm build task to include the two tasks for scrips:
     "build": "rimraf dist && react-scripts build && node ./scripts/copy-xs-app  && node ./scripts/rename-build-dir"

Readme

Keywords

none

Package Sidebar

Install

npm i chief-complaint

Weekly Downloads

2

Version

0.1.0

License

none

Unpacked Size

244 kB

Total Files

31

Last publish

Collaborators

  • stefann01