Git Product home page Git Product logo

altinn-studio's Introduction

Altinn Studio

Altinn Studio build status Altinn Apps build status

An early test version of Altinn Studio is available at https://altinn.studio.

Use the documentation to get started using Altinn Studio.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  1. .NET Core 2.1 SDK
  2. Node.js (Version 10.*)
  3. Newest Git
  4. A code editor - we like Visual Studio Code
  5. Docker CE
  6. Add localhost altinn3.no and 127.0.0.1 altinn3.no in the hosts file (C:/Windows/System32/drivers/etc/hosts)
    On MacOS: Add localhost altinn3.no and 127.0.0.1 altinn3.no to /private/etc/hosts.
    sudo nano /private/etc/hosts
  7. Make sure your C drive is shared with docker, Docker Settings -> Shared Drives
    On MacOS: Change docker-compose.yml (both)
      volumes:
        - "C:/AltinnCore/Repos:/AltinnCore/Repos"
    to:
      volumes:
        - "/Users/<yourname>/AltinnCore/Repos:/AltinnCore/Repos"
  8. World Wide Web Publishing Service must be disabled, Services -> "World Wide Web Publishing Service" rigth click and choose "stop"

Installing

Clone Altinn Studio repo and navigate to the folder.

git clone https://github.com/Altinn/altinn-studio
cd altinn-studio

Run all parts of the solution in containers (Make sure docker is running)

docker-compose up -d --build

The solution is now available locally at altinn3.no

Running Designer and/or Runtime component locally

The Designer and Runtime components can be run locally when developing/debugging. The rest of the solution (Repository and LoadBalancer) will still have to be running in containers. Follow the install steps above if this has not already been done.

Designer

Stop the container running Designer

docker stop altinn-designer

Navigate to the Designer folder. The first time running, or after any package changes, get the latest packages.

cd src/AltinnCore/Designer
npm install
npm run gulp-install-deps

Build and run the code.

dotnet build
npm run gulp
npm run gulp-develop

Runtime

Stop the container running Runtime.

docker stop altinn-runtime

Navigate to the Runtime folder. Build and run the code.

cd src/AltinnCore/Runtime
npm install
npm run gulp-develop

If you are not going to edit the runtime react app you can use

cd src/AltinnCore/Runtime
npm install
npm run gulp
dotnet run

Which will build the runtime app, but not listen for changes to our react app.

Running the tests

End to end tests

Automated end to end tests are currently being developed.

Coding style tests

Coding style tests are available for the React front end application, using tslint.

Navigate to the React front end application and run linting.

cd src/react-apps/ux-editor
npm run lint

Deployment

The current build is deployed in Kubernetes on Azure.

Automated build/deploy process is being developed.

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the 3-Clause BSD License - see the LICENSE.md file for details.

altinn-studio's People

Contributors

acn-dgopa avatar acn-sbuad avatar clarkt avatar dskogan avatar frodegill avatar hannekot avatar iotryti avatar jezpoz avatar lorang92 avatar lvbachmann avatar malmil avatar nkylstad avatar rogerkjaernsrod avatar thetecharch avatar trymen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.