[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-10-05 12:28:49 +02:00
.github Create dependabot.yml 2024-01-05 23:55:37 +01:00
.island [DEV] update development tag 2024-05-20 09:59:21 +02:00
doc [DOC] add some documentation 2024-05-05 12:33:49 +02:00
sample/archidata/basic [FEAT] add a minimum sample (Not tested) 2024-05-05 12:33:33 +02:00
src [DEV] start full refacto of SQL interface 2024-10-05 12:28:49 +02:00
test [FIX] correct Many to Many (normal way) anf first value field 2024-09-14 15:42:21 +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 [FEAT] someting is wrong 2024-09-12 00:24:37 +02: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 [FEAT] generate a full Zod object for write mode. 2024-06-08 11:42:38 +02: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] update th format of the code 2024-04-28 16:56:33 +02:00
LICENSE Update LICENSE 2024-01-05 23:57:34 +01:00
pom.xml [FEAT] start think about no-sql 2024-09-25 20:25:10 +02:00
README.md [DOC] add spotbug documentation 2024-06-02 13:07:51 +02:00
spotbugs-security-exclude.xml [DOC] add spotbug documentation 2024-06-02 13:07:51 +02:00
spotbugs-security-include.xml [DOC] add spotbug documentation 2024-06-02 13:07:51 +02:00
version.txt [DEV] update dev tag version 2024-09-15 15:56:06 +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

Run Spot-bug:

mvn spotbugs:check

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