If you already have a local copy of susi_server repository
- Download and install Eclipse
- Open Eclipse and choose
Import Project - In the window that opens up, Choose
gitand pressNext - Choose a local repository and Add the repository to the search results window.
- Press Finish
- Then choose the
susi_servergit repository in the list and proceed in the wizard. - Choose the radio option which says
Import existing Eclipse Projects - Press Finish to open up the Package Explorer and the IDE should be available with the project opened.
- Once the repository is ready using the Package Explorer navigate to
src.ai.susi.SusiServer - Right click on SusiServer, Choose
Run As > Run Configurations - Choose
Java Applicationand press theNew Configurationbutton in the top left corner of this pane. - In the frame panel that opens up, Move to the Arguments Tab and add the VM Arguments as
-Xmx2G -Xms2G -server -ea - Click
Applyand thenClosethe window
NOTE: In case of gradle build failure, run the following command in the susi_server local repository :git submodule update --init --recursive
You can use Eclipse to download the susi_server from the git url in Step 4, Instead of choosing Local Repository
choose Remote URL and use the git link https://github.com/fossasia/susi_server.git and follow the rest of the instructions
- Choose
File > New > Project - Choose
Java > Java Project from existing ant file - Navigate to the local copy of the repository and use the build file to open up
susi_server
Right click on SusiServer.java and click on Run As -> JAVA Application , a window in your browser should open on 127.0.0.1:4000 .