vue-cli-plugin-scp-cf-app-service
v1.3.4
Published
A package to scaffold a nodejs app from a basic vue.js application for the Cloud Foundry SAP Cloud Platform (SCP). The app has the Connectivity Service embedded <br><br> Based on Vue CLI v3.0.0-beta.10
Downloads
287
Readme
A package to scaffold a nodejs app from a basic vue.js application for the Cloud Foundry SAP Cloud Platform (SCP). The app has the Connectivity Service embedded Based on Vue CLI v3.0.0-beta.10
Prerequisite
You have installed vue-cli.
$ npm install -g @vue/cli
Documentation
First create a vue.js application with:
$ vue create my-app
You have created a basic vue.js application. For the SCP-CF node js app you will need some additional settings and files:
- add manifest.yml
- add nodejs server
- add server routes
- add xs-app.json
- add xs-security.json
- create start script in package.json
- add .cfignore to avoid node_modules folder being uploaded to CF
- add .npmrc for registering @sap npm registry within CF
These tasks are performed by this plugin if you call:
$ npm i vue-cli-plugin-scp-cf-app --save-dev
$ vue invoke scp-cf-app
or
$ vue add scp-cf-app
For deploying to CF just call:
$ npm run build
$ cf push
Security
If you are using xs-security.json then use:
$ cf create-service xsuaa application -c xs-security.json my-xsuaa
or
$ cf update-service my-xsuaa -c xs-security.json node-uaa
```
Next: add the roles to the role collection in SCP