:
Last modified: Jan 2, 2024

Test of app locally

Description of how test of an app locally on your own machine.

If you need to write a significant amount of code (e.g., logic), or quickly check how a form looks, it can be useful to test changes without having to deploy the app to a test environment.

When the app is created, it comes with all the necessary files and settings to run as a standalone application. By downloading all the files associated with the app from its repository, you can run the app locally on your own machine, thereby easily testing changes.

In the test environment, the app uses a set of platform services to retrieve/store data, etc. A simplified version of these services is available to set up and run locally. This is necessary for the app to be tested locally.

Running the app locally

  1. Navigate to the app repository in Altinn Studio. See here for how to navigate there.
  2. Download all the files in the repository
    • by using the git clone command (read more)
    • by clicking the download icon (this downloads it as a zip file)

See Altinn Studio on Github for information on how to download and run the local platform, and how to run the app.