It first involves creation a folder for your application ( called myapp in this case). The we need to go into the myapp folder. Finally we tell Dynamics Mobile SDK to initialize our folder with a sample mobile application source code.
Enter your Dynamics Mobile credentials obtained in step #2 (application area, username,password) and Voilà - you will see the home screen of your newly created mobile app.
7. Modifying and developing your new mobile application
You can open the application source code with your favorite development too. You can use Theia or Visual Studio Code (or other typescript environment).
Open the project folder from the development environment You will see the following file structure
.bin* - Automatically managed folder. It contains the app output. Do not modify or delete the folder manually!
.dms - Automatically managed folder. It contains tools used for building and running the app locally. Do not modify or delete the folder manually
.vscode - contains Visual Studio Code specific configurations
node_modules - npm modules. Use the standard npm tools to manage it.
src - contains the actual source code of the app
Business Objects - business objects definitions
Tasks - User Interface Tasks definitions
Code - Code definitions used across the app
Views - Views(screens) layouts and code
Translations - language translation files
Components - reusable components
If you add or modify a business objects from within the Business Objects folder, you might need to re-generate the business objects .ts file by executing the following command in the terminal window:
# generates .ts file in the .dms folder, containing business objects client side code
>npm run genbo
The command will generate new .ts file from the Business Object definition files and then you will be able to use the business objects into your code and take advantage of TypeScript code completion in Visual Studio Code.