[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-04-28 11:44:01 +02:00
.github Create dependabot.yml 2024-01-05 23:55:37 +01:00
.island [RELEASE] new version 0.6.1 2024-01-19 21:20:57 +01:00
src [FEAT] add capability to set condition in update 2024-04-28 11:44:01 +02:00
test [FEAT] add dependency of the primary key and rework quer(r)y 2024-04-28 10:27:30 +02:00
tools [DEV] add email properties 2024-01-17 20:19:10 +01:00
.checkstyle [DEV] review many models and system 2023-10-14 12:18:36 +02:00
.classpath [DEV] add capability to copy the tool file 2024-03-11 22:51:04 +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 [RELEASE] release v0.8.2 2024-04-28 10:32:12 +02:00
README.md [DEBUG] missing remove a last element of Zota 2024-01-18 23:40:33 +01:00
version.txt [RELEASE] release v0.8.2 2024-04-28 10:32:12 +02: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