development environment manual setup - MarkoVcode/Insect GitHub Wiki
Local Development Environment - Manual Setup
Prerequisites for setting up a local development environment
- Installed Java8 SDK
- Running Redis instance on default port - you could consider running docker container
- Installed NodeJS with npm
Setup
- Clone the project
git clone https://github.com/MarkoVcode/Insect.git
- Build and download dependency
cd Insect
./gradlew build
orgradlew.bat build
- 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)
- Executing proxy service:
cd ins_proxy/src
npm start
- Execute websocket service:
ins_websockets/src/main/java/org/scg/websockets/run/WebsocketsDriver.java
- 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.