-
Install mongoDB and run. Use this mongoDB documentation link for reference
-
Install nodejs and npm package. Use this Nodejs documentation link for reference
-
Run the following two scripts importAuth.js and importUser.js present in server/importutil folder. The following are the commands
-
node <path_to_Studygenie>/server/importUtil/importUser.js
-
node <path_to_Studygenie>/server/importUtil/importAuth.js
Note: You have to manually exit after running each of the above commands by entering 'ctrl+C' when the script displays 'done' on the terminal
-
-
Install elastic search in your local computer. Use this Elasticsearch documentation link
-
Run
curl -XPUT 'http://localhost:9200/studygenie'
from terminal of a linux machine. If you are using a remote elastic search server, use the corresponding url for elasticsearch -
Run the following python script to load data into elasticsearch python /path/to/Studygenie/server/importUtil/es_load.py. The above command loads our collected data on to the elasticsearch server.
-
Initial Database setup for notes data and user accounts is done. Now on to the server setup.
-
Go to the source code folder and run
npm install && npm start
-
The server starts on port 8000. Access the application using 'http://localhost:8000/'
- On the login page use the following credentials
- usename:
user22@gmail.com
- password:
pass22
-
As the previous search history of this user is more inclned to "Java", you would have more of java notes compared to others.
-
To see how other functionalities work, please view the following youtube video https://youtu.be/u9yXoSEe8jU