-
Notifications
You must be signed in to change notification settings - Fork 1
Backend Developer Manual
Peleg Yair edited this page Jun 24, 2018
·
2 revisions
first of all you have to download IntelliJ because its our workGround in the BackEnd
- Download and install IntelliJ from the following link: https://www.jetbrains.com/idea/download/index.html#section=windows
- 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 :
- 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.
- Login to https://mlab.com/login/ with said provided username and password.
- After logging in successfully, choose “ds042677.mlab.com:42677/dailypulsemedatabase” in the MongoDB Deployments page.
- Choose “Users” and there you can manage existing users and add a new user.
- Add a new user with the username and password of your choosing.
- 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 :
- Download the JDK from the following link according to your OS: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
- When the download is complete, run the installation and setup. Note the exact path you install the JDK to.
- After the installation is complete, Open IntelliJ.
- Choose File->Open and then from the root file Choose DailyPulseMe/BackEnd-2.
- 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.
- 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 .
- Download https://github.com/eyaler/word2vec-slim.
- Change NLP.py script to open the model file according to your path in step 1.
- Change NLP.java path to open NLP.py according to your machine.