Skip to content

Latest commit

 

History

History
82 lines (56 loc) · 2.26 KB

README.md

File metadata and controls

82 lines (56 loc) · 2.26 KB

Build status

SYFO Manuell Backend

This project contains the backend for handling manual sykmelding, front end code: https://github.com/navikt/syfosmmanuell

Technologies used

  • Kotlin
  • Ktor
  • Gradle
  • Kotest
  • Jackson
  • Postgres
  • Docker

Requirements

  • JDK 21
  • Docker

FlowChart

This the high level flow for the application

  graph LR
  
      A[\teamsykmelding.sykmelding-manuell/] --- syfosmmanuell-bakcend
      syfosmmanuell-bakcend --- syfosmmanuell
      syfosmmanuell-bakcend -- check caseworker access --- istilgangskontroll
      syfosmmanuell-bakcend -- create,get,complete oppgave --- oppgave
      syfosmmanuell-bakcend -- verify token --- azure-AD
      syfosmmanuell-bakcend --- id1[(Database)]
      
      syfosmmanuell-bakcend --- B[\teamsykmelding.sykmelding-apprec/]
      syfosmmanuell-bakcend --- C[\teamsykmelding.ok-sykmelding/]
      syfosmmanuell-bakcend --- D[\teamsykmelding.oppgave-produser-oppgave/];  
 
Loading

Getting started

Building the application

Compile and package application

To build locally and run the integration tests you can simply run

./gradlew shadowJar

or on windows gradlew.bat shadowJar

Creating a docker image

Creating a docker image should be as simple as docker build -t syfosmmanuell-backend .

Running a docker image

docker run --rm -it -p 8080:8080 syfosmmanuell-backend

Access to the Postgres database

For information on connecting to dev og prod database see: Postgres GCP

Upgrading the gradle wrapper

Find the newest version of gradle here: https://gradle.org/releases/ Then run this command:

./gradlew wrapper --gradle-version $gradleVersjon

Contact

This project is maintained by navikt/teamsykmelding

Questions and/or feature requests? Please create an issue

If you work in @navikt you can reach us at the Slack channel #team-sykmelding