Development Environment Setup

This guide helps you setting up all the tools you need to make a contribution to the Scenarioo source code using IntelliJ.

This is the recommended setup, which means we are most likely able to support you in case of issues.

There are some additional notes for Ubuntu users documented under Development Environment on Ubuntu.

Quick Setup

Install Tools

The following tools should be installed and running on your computer:

  • Git (most recent version)
  • Java JDK (1.8)
  • Node.js (8.11+)
  • IntelliJ IDEA Ultimate (most recent version)
    • Ask @bruderol if you want to use an open source license for it
  • Docker (recommended)

To work with the Full Text Search feature, you additionally need one of the following:

Setup Git

  • For most things you will work with the IntelliJ GIT client or use the GIT command line
  • Always commit with Unix style line endings
    • For Windows: We recommend to use following setting to ensure unix style line endings:
       git config --global core.autocrlf input
      
      If you don't want to set this globally, please set it at least for the Scenarioo projects. See for more info: https://help.github.com/articles/dealing-with-line-endings/
  • Make sure that you personalize your GIT by setting your username and email for commits:

      git config --global user.name "John Doe"             
      git config --global user.email johndoe@example.com
    

    :warning: Make sure to configure the same email as registered in your github account See also here: https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup

  • Please refer to our Branching Strategy for more information about how we use branches and create releases

Get the Sources

Clone the Scenarioo viewer application repository:

git clone https://github.com/scenarioo/scenarioo.git

For working on the viewer application, this is enough. See the Developer Guide for more information on how to work with the writer libraries as well. For a complete list of all repositories, check https://github.com/scenarioo.

For Windows: In case of troubles with Filename too long errors

cd scenarioo
git config core.longpaths true
git checkout -f HEAD

Also make sure you have an up-to-date version of Git installed.

Install IntelliJ Plugins and import Scenarioo

  • Install the following IntelliJ IDEA plugins if you don't have them already:

    • NodeJs
    • Karma
    • .ignore
  • Import Scenarioo by using "New project from existing sources":

    • Choose 'scenarioo' folder
    • Import "From external model: Gradle" and use the gradle wrapper (default settings)
    • A dialog appears asking whether the existing .idea folder should be overwritten. Select Yes. :warning: This deletes all existing run configurations, thus you need to revert the changes (see next step).
    • Do a revert of all changes: Menu VCS > Git > Revert -> Revert

Install and Configure Docker

If you want to use the ElasticSearch run configuration in IntelliJ to run the Full Text Search E2E tests, you have to install Docker and configure it correctly. Otherwise you can skip this step.

After installing Docker you need to make configuration changes for IntelliJ and ElasticSearch to work correctly.

In Docker Settings:

  • "General" > "Expose daemon on tcp://localhost:2375 without TLS"
    • This is needed so that our IntelliJ Docker run configurations can connect to Docker
  • "Advanced" > "Memory" > 4096MB (or more)
    • The default is 2048MB, this is not enough, because ElasticSearch alone needs 2GB to start.
  • "Shared Drives" > Share the drive where you checked out the Scenarioo repository
    • This is needed if you want to use the "Scenarioo - Hafenarbeiter komponiert Dev Cluster" run configuration, because it accesses the war and the generated test data.

Developer Guide

For more information on how to develop, build and test Scenarioo properly, head over to the Developer Guide!

results matching ""

    No results matching ""