Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 3.85 KB

README.md

File metadata and controls

53 lines (34 loc) · 3.85 KB

j-lawyer.org Developer Quickstart

Repository with documentation, scripts and tools for building all sub projects. No source code in this repository that will end up in any release.

Quickstart:

Prepare environment

Build the application

  • Clone repository j-lawyer-org to your local disk. When on Windows, the top most folder "j-lawyer-org" should reside next to the "tools" folder you downloaded and extracted. When cloning directly from within Netbeans ("Team" - "Remote" - "Clone"), Netbeans will automatically scan for projects and open them.
  • Linux: run build-fast.sh in repository j-lawyer-org to build the applications, skipping tests
  • Windows: run build-windows.sh in Git Bash, followed by deploy-windows.sh (both located in folder "j-lawyer-org")

Running tests

  • In contrast to build-fast.sh, build.sh will also run the automated tests.

Set up a new development database

Run j-lawyer-org/j-lawyer-server/setup/create_database.sql in a MySQL prompt or frontend. MariaDB on Windows ships with HeidiSQL as a frontend, or connect to the database using

mysql -u root -p

then then issue the command

source C:/dev/j-lawyer-org/j-lawyer-server/setup/create_database.sql;

(use forward slashes) This will create an empty j-lawyer.org database with users admin/a and user/u

Deploy the server

  • once the build ran successfully, take j-lawyer-server.ear from j-lawyer-org/j-lawyer-server/dist/ and put it in wildfly-26.1.3.Final/standalone/deployments - this will install the server binaries. Scripts deploy.sh and deploy-windows.sh will take care of this.
  • Linux / macOS: launch the server with: sh wildfly-26.1.3.Final/bin/standalone.sh -c standalone.xml -b 0.0.0.0 (or start it from within the IDE, in the "Services" tab under "Servers")
  • Windows: launch the server with: wildfly-26.1.3.Final/bin/standalone -c standalone.xml -b 0.0.0.0 (or start it from within the IDE, in the "Services" tab under "Servers")
  • run 'java -jar j-lawyer-client.jar' in j-lawyer-org/j-lawyer-client/dist to run the client (or start it from within the IDE, by right-clicking "j-lawyer-client" projekt and choosing "Run")

Questions: reach out to info (-at-) j-lawyer.org - we will provide support to anyone considering to support the project. Word!

Hints

n/a