Source Code
Working with Source Code
This page describes how you can access and work with the source code of your application generated by Flatlogic.
Accessing the Source Code
Flatlogic provides several options to access and manage your application's source code:
Download the Source Code
Push to GitHub Repository
Open in VS Code Web
Below are detailed instructions for each method.
1. Downloading the Source Code
To download your application's source code as a zip file:
Navigate to your Flatlogic account and open your application's project page.
Click on the </> Code button, then Download button.
Save the zip file to your local computer and unzip it to your preferred directory.
Your downloaded project includes all necessary files and configurations.
Note: You must have an active subscription on Flatlogic Platform to use this feature.
2. Pushing Source Code to GitHub
You can push your application's source code directly to GitHub. This facilitates version control and collaboration.
Steps:
Go to your project's page in the Flatlogic platform.
Click on the </> Code button, then Push to GitHub button.
Authenticate with your GitHub account (if not already connected).
Select or create a repository where the source code will be pushed.
Confirm your selection to initiate the push.
You can connect the GitHub repository to your app and push all generated code there. Thus, you will be able to work directly in the GitHub repository with the code and make changes there.
In case you modify the schema (add entities, modify them) Flatlogic platform is going to initiate a push to the connected repository.
Note: You must have an active subscription on Flatlogic Platform to use this feature.
3. Opening Source Code in VS Code Web
You can quickly inspect and modify your code using VS Code Web, a lightweight web-based code editor integrated with Flatlogic.
To open your source code in VS Code Web:
Navigate to your application’s project page.
Click on the </> Code button, then Open in VS Code Web button.
Your application's source code will open in a new browser tab, providing full editing capabilities directly within your web browser.
This option does not require local installations, allowing instant code edits and review.
Note: You must have an active subscription on Flatlogic Platform to use this feature.
Also, check guide Working with Git Repository.