打開 Jerry 前一篇文章 在沒有任何前端開發經驗的基礎上, 建立第一個 SAP Fiori Elements 應用 建立的 Fiori Elements 應用:
在 localService 檔案夾下建立 mockdata 檔案夾,這裡面存放的就是我們啟動 mock server後,在 Fiori Elements 應用裡,顯示的本地資料。
mockdata 檔案夾裡的實際内容,請從這個連結獲得:
https://download.csdn.net/download/i042416/16685743之後對着項目右鍵,選擇 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-mock
[email protected] 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
/sap
info server:ux-proxy UI5 proxy started for
info server:liveload Livereload middleware started for port 35730 and path C:\Code\git\capSample\FEDemo\jerryfioriapp\webapp
Server started
URL: http://localhost:8082