Development Environment Set Up for Rules

Setting up a full featured IDE like IntelliJ provides access to a set of useful development tools and enables local compilation of rules.

Step-by-step guide

Old guide can be found here. It covers some useful steps. Here below is an update as to where to find the important .jar file 

  1. Install JetBrains IntelliJ Community Edition (https://www.jetbrains.com/idea/download/)
  2. SSH into a running Indeni system
    1. Locate the file "indeni-server.jar" ( sudo find / -name "indeni-server.jar" )
    2. If you work on mac or linux
      1. Go to a local terminal
        1. Write "scp indeni@x.x.x.x:/path/to/indeni-server.jar ~/Somewhere" to copy the file locally
    3. If you are a windows user
      1. Make sure you have putty installed
      2. Locate pscp.exe
      3. Run pscp with the same parameters as mentioned above
  3. Move indeni-server.jar to the directory where you wish to store it
  4. Create a new project in IntelliJ with the project type "Scala" (Scala and IDEA type of project)
  5. Go to File → Project Structure
  6. Under modules, choose "Add dependencies" → "JARs or directories"
  7. Choose indeni-server.jar