Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
/ oipie-api-core-java Public archive

Replication of the API-CORE for oipie in Java.

Notifications You must be signed in to change notification settings

Oipie/oipie-api-core-java

Repository files navigation

🥗 Oipie api-core

This is a Work in Progress replication of the existing api-core service for oipie implemented in Java.

Prerequisites

  • 🐳 Docker
  • ☕️ Java 17
  • 💡 IntelliJ Idea or another code editor

Libraries and versions

  • ☕ ️Java 17
  • 🌱 Spring-boot 2.7.6
  • 🐘 Gradle 7.5.1
  • 🧪 Rest-assured 5.3.0
  • 𝌏 Liquibase 4.17.2
  • ✏️ Checkstyle 10.5.0

Run

Running the App

  1. Set Env vars

Initialize the database and the service 2. ./gradlew bootRun

In order to close the database

  1. ./gradlew composeDown

Migration flow

See the migration

  1. ./gradlew liquibase diff

Generate the migration 2. ./gradlew liquibase diffChangelog

Execute migration 3. ./gradlew liquibase update

WARNING

Due to an unresolved issue you must remove the line with content -- liquibase formatted sql that is generated with each migration

Running tests

Memory tests

  1. ./gradlew testMemory

H2 tests

  1. ./gradlew testH2

Database tests

  1. ./gradlew testDB

Compile without tests the App

  1. ./gradlew build -x test

TO DO:

  • CI/CD

About

Replication of the API-CORE for oipie in Java.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages