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
- Navigate to the app repository in Altinn Studio. See here for how to navigate there.
- 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)
- by using the
See Altinn Studio on Github for information on how to download and run the local platform, and how to run the app.
- Testing the app APIs locally
How to test app APIs locally.
- Debugging of app
When running the apps locally one can debug using various tools.
- Test-user for local testing
We have defined a small set of test users available for local test.