[MPL2] generic back tools for all websites (simplify back development). it contains a tool to simply access and request bdd with object introspection
Go to file
2024-01-06 21:03:03 +01:00
.github Create dependabot.yml 2024-01-05 23:55:37 +01:00
src/org/kar/archidata [DEV] correct delete API for test 2024-01-05 15:27:55 +01:00
test [DEV] upgrade library start to be really cool 2023-12-22 23:34:22 +01:00
tools [DE] update rteadme and .gitignore 2024-01-06 21:03:03 +01:00
.checkstyle [DEV] review many models and system 2023-10-14 12:18:36 +02:00
.classpath [DEV] update with openAPI 2023-12-27 11:08:18 +01:00
.gitignore [DE] update rteadme and .gitignore 2024-01-06 21:03:03 +01:00
.jenkinsfile [DEV] add basic jenkinsfile 2023-01-08 17:49:20 +01:00
.project [DEV] refacto dataAccess and ManyToMany interface (get Long) 2023-11-02 15:14:55 +01:00
CheckStyle.xml [DEV] extarct maximul from karauth and karusic 2022-11-07 00:28:34 +01:00
CleanUp.xml [DEV] extarct maximul from karauth and karusic 2022-11-07 00:28:34 +01:00
dependabot.yml wrong position of dependabot 2024-01-05 23:56:15 +01:00
Formatter.xml [DEV] extarct maximul from karauth and karusic 2022-11-07 00:28:34 +01:00
LICENSE Update LICENSE 2024-01-05 23:57:34 +01:00
pom.xml [DEV] format pom.xml 2024-01-06 09:07:03 +01:00
README.md [DE] update rteadme and .gitignore 2024-01-06 21:03:03 +01:00
version.txt [DEV] update dev tag version 2023-11-29 19:15:02 +01:00

Archi-data

Archi-data is a framework that simplify:

  • Creating a REST server with:
    • Right control
    • Swagger display interface
    • Normalize error generate by the server
  • Access to the DB:
    • introspect Object and insert in the TD (SQLITE & MY-SQL)
    • Manage migration
  • JPA checker for many generic request
  • simplify the request of the Test-service

Develop in cmd-line:

The first step is configuring your JAVA version (or select the JVM with the OS)

export PATH=$(ls -d --color=never /usr/lib/jvm/java-2*-openjdk)/bin:$PATH

Install the dependency:

mvn install

Run the test

mvn test

Install it for external use

mvn install

Develop With Eclipse:

Import the project:

  • Open a (new) project on eclipse
  • File -> Import
    • Maven -> Existing Maven project
    • Select the pom.xml file and click on import

Run the Test:

  • Open the package test.kar.archidata
  • Click right on it
  • Select Debug As -> JUnit Test

Install in the local maven repository:

  • Click right on the pom.xml file
  • Select Run As -> Maven install

Somes tools:

Auto-update dependency:

Auto-update to the last version dependency:

mvn versions:use-latest-versions

Format the code

Simply run the cmd-line:

mvn formatter:format

Reformat XML file like the pom.xml

XMLLINT_INDENT="	" xmllint  --format "back/pom.xml" -o "back/pom.xml"

Enable the pre-commit checker

./tools/configure_precommit.bash

Note

: You can change the code in .git/hooks/pre-commit by replacing formatter:verify with formatter:format to auto format the code @ every commit

Add Gitea in the dependency for the registry:

Read instruction for tocken in ~/.m2/setting.xml

edit file: ~/.m2/settings.xml

<settings>
  <servers>
    <server>
      <id>gitea</id>
      <configuration>
        <httpHeaders>
          <property>
            <name>Authorization</name>
            <value>token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</value>
          </property>
        </httpHeaders>
      </configuration>
    </server>
  </servers>
</settings>

release:

export PATH=$(ls -d --color=never /usr/lib/jvm/java-2*-openjdk)/bin:$PATH
mvn install
mvn deploy