Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.27 KB

quickstart.md

File metadata and controls

32 lines (25 loc) · 1.27 KB

Quickstart

Framework build

  1. Clone project git clone [email protected]:neva-dev/javarel-framework.git
  2. Enter cloned directory cd javarel-framework
  3. Install it locally gradle clean publishToMavenLocal (until it being released)

Application build

  1. Clone project git clone [email protected]:neva-dev/javarel-quickstart.git
  2. Enter cloned directory cd javarel-quickstart
  3. Build application using command gradle createOsgiContainer --no-daemon.
  4. Run script run.sh from directory build/osgiContainer.
  5. Web application is available at address http://localhost:6661 and can be debugged using port 16661.

IDE setup

IntelliJ

  1. Create new run configuration named 'Create container' of type 'Gradle'.
    • Select root project
    • Tasks: clean createOsgiContainer
    • Script parameters: --no-daemon
  2. Install Bash plugin.
  3. Create run configuration named 'Run container' of type 'Bash'.
    • Select working directory to build/osgiContainer
    • Fill script with 'run.sh'.
    • As before action add 'Run other run configuration', select 'Create container'
  4. Select 'Run container' in top right corner of IDE and run it for each code change :)
  5. Install Twig plugin.
  6. Open settings tab _File Types". Associate '*.peb' files with 'Twig'.