Skip to content

Command line tool for converting Altinn 2 reporting services into Altinn 3 apps.

License

Notifications You must be signed in to change notification settings

Altinn/altinn2-convert

Repository files navigation

altinn2-convert

Command line tool for converting Altinn 2 reporting services into Altinn 3 apps.

Note: This tool is currently a proof of concept (POC), and functionality is therefore limited.

Getting started

These instructions will get you a copy of the project up and running on your local machine.

Installing

Clone the altinn2-convert repo and navigate to the folder.

git clone https://github.com/Altinn/altinn2-convert
cd altinn2-convert

Setting up an empty app

For easy app development, create an empty app in Altinn Studio if this does not already exist, and clone this to your local machine. Files generated using this tool can then be saved directly in the app directory.

Using the converter

Run the application from your faviorite IDE (f.ex. VS Code), or from the command line using dotnet run. Modify the mode variable in Program.cs to run in different modes

  • "generate": Generate models for the Altinn3 json files based on json schema on altinncdn.no
  • "test": Convert a single schema from TULPACKAGE.zip in the root directory to out/ in the project root
  • "run": Convert all pacages in "~/TUL" to a Altinn3 app in ~/TULtoAltinn3.

There might be other modes in the future when the project matures.

About

Command line tool for converting Altinn 2 reporting services into Altinn 3 apps.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages