Skip to content

Standalone organization chart webapplication that pulls data from OS2MO REST API

License

Notifications You must be signed in to change notification settings

magenta-aps/os2orgviewer

Repository files navigation

OS2Orgviewer

This is a web application that displays a chart over an organization and its members. You can navigate the chart, display info on individual sections and people, and search for people or units within the organisation. It pulls organization information from OS2MO REST API.

Installation

Assuming you have Node.js and npm installed, check out this code and install the build dependencies:

git clone git@git.magenta.dk:rammearkitektur/os2orgviewer.git
cd os2orgviewer/app
npm install

Development quick start

OS2orgviewer assumes you have a running OS2MO instance somewhere with access to it's API. If that is not the case, you should start a local OS2MO instance like so:

  1. Clone OS2MO and
cd os2mo
  1. Make a file docker-compose.override.yml and edit it to insert this configuration:
services:
  mo:
    environment:
      OS2MO_AUTH: "false"
  1. Start OS2MO
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d --build

It will load the Kolding dummy dataset. 4. Start OS2orgviewer.

cd os2orgviewer
docker-compose up -d --build

You can now access OS2Orgviewer on http://localhost:8083/.

Refer to the development section for further development instructions.

Deploy quick start

Inside os2orgviewer/app directory, run the build script

npm run build (default setup)

New directories will be created in the app/dist folder with your build (example: app/dist/default/). Hook it up to a server, and you'll be good to go.

Documentation

Document for the application can be found here.

Configuration documentation

Configuration details can be found in the configuration section