Giter Site home page Giter Site logo

varda-rekisterointi's Introduction

varda-rekisterointi

Purpose

explained here

Technologies & Frameworks

Below is non-exhaustive list of the key technologies & frameworks used in the project.

Backend

  • Spring boot
  • Spring security (CAS)
  • Spring Data JDBC
  • Postgresql
  • Flyway
  • Lombok
  • Swagger
  • db-scheduler

Frontend

  • Typescript
  • React (CRA)
  • Axios
  • Material UI
  • Styled components

Requirements

Required tools for building the project:

  • Java 11 (SDKMan! or similar recommended to manage JDKs)
  • Docker

Project includes maven wrapper so it doesn't have to be installed. Just use ./mvnw (unix) and mvnw.cmd (win).

Database

Create database by running:

docker run --name varda-rekisterointi-db -p 5432:5432 -e POSTGRES_USER=varda-rekisterointi -e POSTGRES_PASSWORD=varda-rekisterointi -e POSTGRES_DB=varda-rekisterointi -d postgres:10.9

This will start the container. Later, it can be started and stopped with docker <start|stop> varda-rekisterointi-db. Integration tests automatically start and stop a database server.

Build

mvn package

Run

java -jar target/varda-rekisterointi.jar

Service is available at http://localhost:8081/varda-rekisterointi.

For development

Create dev.yml file in src/main/resources, based on the sample file:

varda-rekisterointi:
    service:
        username: <your_username>
        password: <your_password>
    valtuudet:
        host: https://asiointivaltuustarkastus.test.suomi.fi
        client-id: <client_id>
        api-key: <api_key>
        oauth-password: <oauth_password>

Start backend with following parameters

-Dspring.config.additional-location=<path_to_file_created_above>/dev.yml
-DbaseUrl=https://<test_environment_host>
-Dvarda-rekisterointi.baseUrl=https://localhost:8080

Alternatively, run mvn -P dev exec:java to utilize configuration in POM. This requires having the config file src/main/resources/dev.yml.

Start frontend

npm start

Service is available at https://localhost:8080/varda-rekisterointi. Login with https://localhost:8080/varda-rekisterointi/hakija/login?hetu=010530-998L (or with any other valid hetu).

To develop backend only, start it with following parameters

-Dspring.config.additional-location=<path_to_varda_rekisterointi_git>/dev-configuration/dev.yml,<path_to_file_created_above>/dev.yml
-DbaseUrl=https://<test_environment_host>
-Dvarda-rekisterointi.baseUrl=https://localhost:8080
-Dserver.port=8080

varda-rekisterointi's People

Contributors

patari avatar jakaarl avatar mkamka avatar jollem avatar juhani-hietikko 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.