Prerequisites: A GitHub account, VS-Code (with AL and PowerShell extensions installed), and Docker installed locally
- Navigate to https://github.com/microsoft/AL-Go-PTE and choose Use this template
- Enter app1 as repository name, select Public or Private and select Create Repository from template
- Select Actions -> Create a new app -> Run workflow
- Enter Name, Publisher, ID range and specify Y in Direct Commit and choose Run workflow.
- When the workflow is complete, select < > Code in the top bar
- Choose the Code button and copy the https Clone Url (in this picture: https://github.com/freddydk/App1.git)
- Start VS Code, press Ctrl+Shift+P and select Git Clone, paste the clone URL and select a folder in which you want to clone the directory.
- Open the cloned repository and open the workspace when VS Code asks you (or do it manually)
Note
You can rename the al.code-workspace
file to <anothername>.code-workspace
to be able to better distinguish the workspaces.
- In the .AL-Go folder, choose the localDevEnv.ps1 script and Run the PowerShell script.
- Answer the questions asked about container name, authentication mechanism, credentials and select none for license file. The script might show a dialog asking for permissions to run docker commands, select Yes in this dialog. Wait for completion of the script.
- In VS Code, press Ctrl+Shift+P and clear the credentials cache.
- Open the HelloWorld.al file, modify the string and press F5. Depending on authentication selected VS Code might ask for the credentials you provided earlier.
- Login to Business Central and your very own world opens up!
- Back in VS Code, you will see that in addition to your changes in HelloWorld.al, the launch.json was also modified with the information about the local environment. Stage your changes, commit and push
- Back on github.com, investigate your Workflows.
- When the build is done, inspect the Build summary (no test app)
- Inspect the workflow run by choosing the build job, expanding the Run Pipeline section and the Compiling apps subsection