SAP UI5 Application Development Tutorial No. 63 - In-depth Introduction to Local Mock Server Implementation Based on OData V4

A set of step-by-step learning tutorials for SAP UI5 beginners

Tutorial Directory

illustrate

Jerry has been in touch with SAP UI5 since joining the CRM Fiori development team of SAP Chengdu Research Institute in 2014. He has published many articles on the working principle and source code analysis of SAP UI5 in the SAP community and the WeChat public account "Wang Zixi".

In Jerry's article Newbies who know nothing about SAP UI5, which materials are better to start with? As I mentioned, Jerry has come all the way from SAP UI5 rookie. He knows that it is not easy for developers with only ABAP development background to transform to SAP UI5 development field, so I designed this learning tutorial for SAP UI5 beginners in my spare time. , Divide the process of developing a complete SAP UI5 application into several steps, and strive to cover all the knowledge points involved in each step. These knowledge points may not be as in-depth as my UI5 source code analysis series articles, but strive to be easy to understand and easy for SAP UI5 beginners to understand.

The source code of each step of this tutorial is stored on my Github , identified by folders 01, 02, 03, etc. For example, the source code of step 1 is here .

Each step builds on the previous step with several new features added. It is recommended for beginners with zero foundation or little knowledge of SAP UI5 to learn step by step from the first step in order, download these codes to the local, cooperate with the text explanation of the tutorial, and do it yourself to deepen your understanding.

If you have any questions about each step of the tutorial, you are welcome to comment and leave a message in the article corresponding to the steps of the tutorial.

Before going through this step, make sure you have reviewed steps 26 and 62:

We opened the file under mockserver.jsfolder and found that it imported an implementation of a third-party tool library: sinon.

The Sinon tool library is named in tribute to the heroic warrior Sinon (Sinnon) who emerged during the decade-long war between the Greek coalition and the Trojans:

The implementation of the SAP UI5 OData Mock Server we use in this tutorial is based on the tool library Sinon.js. Friends who are interested in this tool library can refer to this article of mine: Commemorating the Trojan Hero Sinon - Introduction to the steps and working principles of SAP UI5 Mock Server .

This mockserver.js implementation source code is over 700 lines of code, here is my source code analysis of over 1000 words.

Guess you like

Origin blog.csdn.net/i042416/article/details/123932916