关上 Jerry 前一篇文章 在没有任何前端开发教训的根底上, 创立第一个 SAP Fiori Elements 利用 创立的 Fiori Elements 利用:
在 localService 文件夹下新建 mockdata 文件夹,这外面寄存的就是咱们启动 mock server 后,在 Fiori Elements 利用里,显示的本地数据。
mockdata 文件夹里的理论内容,请从这个链接取得:
https://download.csdn.net/dow…
之后对着我的项目右键,抉择 Preview Application:
抉择 start-mock:
上面是启动时的控制台输入:
PS C:\Code\git\capSample\FEDemo> cd “c:\Code\git\capSample\FEDemo\jerryfioriapp”
PS C:\Code\git\capSample\FEDemo\jerryfioriapp> npm run start-mockjerryfioriapp@0.0.1 start-mock C:\Code\git\capSample\FEDemo\jerryfioriapp
fiori run –open ‘test/flpSandboxMockServer.html#masterDetail-display’
Fiori tools CLI.
info server:ux-proxy Starting fiori-tools-proxy using following configuration:
info server:ux-proxy proxy: ”
info server:ux-proxy ignoreCertError: ‘false’
info server:ux-proxy backend: [{“path”:”/sap”,”url”:”https://sapes5.sapdevcenter.com”}]
info server:ux-proxy ui5: {“url”:”https://ui5.sap.com”,”version”:null,”path”:[“/resources”,”/test-resources”]}
info server:ux-proxy debug: ‘false’
info server:ux-proxy Backend proxy started for https://sapes5.sapdevcenter.com /sap
info server:ux-proxy UI5 proxy started for https://ui5.sap.com
info server:liveload Livereload middleware started for port 35730 and path C:\Code\git\capSample\FEDemo\jerryfioriapp\webapp
Server started
URL: http://localhost:8082
更多 Jerry 的原创文章,尽在:” 汪子熙 ”: