Skip to content

Backend Developer Manual

Peleg Yair edited this page Jun 24, 2018 · 2 revisions

BackEnd Developer Manual

first of all you have to download IntelliJ because its our workGround in the BackEnd

  1. Download and install IntelliJ from the following link: https://www.jetbrains.com/idea/download/index.html#section=windows
  2. Additional details on working with java and IntelliJ can be found in the following links: https://www.jetbrains.com/help/idea/creating-running-and-packaging-your-first-java-application.html https://www.jetbrains.com/idea/documentation/

we are using cloud-hosted MongoDB so this steps is to get access to the cloud :

  1. To get access to the Mongo database we are using, first you need to ask for the username and password to be provided by the team members.
  2. Login to https://mlab.com/login/ with said provided username and password.
  3. After logging in successfully, choose “ds042677.mlab.com:42677/dailypulsemedatabase” in the MongoDB Deployments page.
  4. Choose “Users” and there you can manage existing users and add a new user.
  5. Add a new user with the username and password of your choosing.
  6. Now you need to add the following line to the “application.properties” under BackEnd-2/src/main/resources : spring.data.mongodb.uri=mongodb://:@ds042677.mlab.com:42677/dailypulsemedatabase. Where and are replaced with the username and password of the user you added earlier.

to run the project you need to setUp the completable JDK :

  1. Download the JDK from the following link according to your OS: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
  2. When the download is complete, run the installation and setup. Note the exact path you install the JDK to.
  3. After the installation is complete, Open IntelliJ.
  4. Choose File->Open and then from the root file Choose DailyPulseMe/BackEnd-2.
  5. A message under the tool bar should appear saying "Project SDK is not defined" 4.5 click on : setup SDK -> configure... -> + -> JDK . And then add the path from 2 and click ok -> ok.
  6. Now you can right-click DailyPulseApp.java and click run. The back-end project is now running.

this was the configurations of the project . now you can look to the user controller its the way the we comminacate with the front End . you can look to the classed and theres everything is easy to understand .

Running the NLP with the project

  1. Download https://github.com/eyaler/word2vec-slim.
  2. Change NLP.py script to open the model file according to your path in step 1.
  3. Change NLP.java path to open NLP.py according to your machine.

Clone this wiki locally