Skip to content

development environment manual setup

MarkoV edited this page Feb 14, 2017 · 3 revisions

Local Development Environment - Manual Setup

Prerequisites for setting up a local development environment

  1. Installed Java8 SDK
  2. Running Redis instance on default port - you could consider running docker container
  3. Installed NodeJS with npm

Setup

  1. Clone the project
    git clone https://github.com/MarkoVcode/Insect.git
  2. Build and download dependency
    cd Insect
    ./gradlew build or gradlew.bat build
  3. Download all the ins_proxy nodejs dependencies
    cd ins_proxy/src
    npm install

Running project

To run the project locally three services needs to be executed (make sure that Redis instance is up and running)

  1. Executing proxy service:
    cd ins_proxy/src
    npm start
  2. Execute websocket service:
    ins_websockets/src/main/java/org/scg/websockets/run/WebsocketsDriver.java
  3. Execute webapplication service:
    ins_webapp/src/main/java/org/scg/webapp/run/WebappDriver.java

Configuring application

[Basic application configuration](configuring application)

IDEs and debugging

For nodeJS running and debugging I strongly recommend http://code.visualstudio.com
For running and debugging java project https://www.jetbrains.com/idea
The code is making use of http://editorconfig.org
Make sure that your IDE is supporting .editorconfig. Some IDEs might need a plugin installed for that to work.