Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(this is a draft)

Table of Contents
(introduction needed)


This documentation provides some help for backend developers to get started. It is most likely incomplete, so please don't hesitate to ask and add information here as needed.

See also: Overview for a new developer and Newcomer's first steps

Running in IDEA

Installation

  1. Install Java JDK 11
  2. Install IDEA as IDE : https://www.jetbrains.com/idea/

  3. Install last version of Vagrant : https://www.vagrantup.com/
  4. Install VirtualBox : https://www.virtualbox.org/
  5. Install Postman: https://www.postman.com/
  6. Clone from git modules and add all of them in one IDEA project
    • ThunderJet back-end modules : mod-orders, mod-orders-storage, mod-invoice, mod-invoice-storage, mod-finance, mod-finance-storage, mod-organizations, mod-organizations-storage, mod-gobi, edge-orders, edge-common, mod-ebsconet, acq-models
    • Modules with integration tests: folio-integration-tests(Karate), folio-api-tests(Postman)
  7. Up FOLIO platform by using one of the box  :
  8. Configure VitualBox and IDEA for running FOLIO microservice from IDEA : How to run folio backend modules with IntelliJ Idea and interact with Vagrant box environment

...

If a module was already deployed and a new version needs to be tested for integration tests, it is not necessary to remove the old version: simply add .xxx to the id in the descriptor, with a number higher than the currently deployed one, and the karate tests will automatically use the latest version.

Debugging

TODOModules can be executed in debug mode in IDEA, they just need to be deployed as described above.. Unit tests can also be debugged in the same way.

change log level for mod-invoice-storage:
http://localhost:8097/admin/loglevel?level=INFO&java_package=org.folio.rest.persist.PostgresClient

...