Skip to content
Patrik Harag edited this page Apr 14, 2019 · 8 revisions

Build

!! Before you can start you need to have on your PC:

  • Java 1.8 or higher
  • Maven
  • NPM
  • Tomcat (tested on version 8.5)
  • MySql/MariaDB server

cd sources

mvn clean install

This sequence creates war file sources/imiger-core/target/imiger.war which can be deployed directly to Tomcat

Database Confuguration

Environment variables:

  • JDBC_DATABASE_PASSWORD
  • JDBC_DATABASE_USERNAME
  • JDBC_DATABASE_URL (example: jdbc:mysql://localhost/db_name?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
  • (optional) INIT_DB=true – will automatically execute db init script sources/imiger-core/src/main/resources/create_table.sql

Get started in IntelliJ IDEA

This manual was written for IntelliJ IDEA 2018.3.3 (Ultimate Edition)

  1. Open sources directory in IntelliJ

  2. Build configuration: a. Open Run -> Edit Configurations

    b. Add new configuration: + button -> Tomcat Server -> Local

    c. On Server tab Configue Application Server IntelliJ application server configuration

    d. On Server tab Open browser -> URL -> http://localhost:8080/imiger

    e. On Server tab Before launch remove Build Goal

    f. On Server tab Before launch -> + button -> Run maven goal -> Command Line -> Install

    g. On Deployment tab + button -> External Source -> Path to imiger.war

    h. On Deployment tab Application context = /imiger

    i. On Startup/Connection fill envoronment variables

UI Tests

  • install Python with pip
  • pip install robotframework
  • pip install robotframework-seleniumlibrary
  • install chrome driver
Clone this wiki locally