TahaAsif / socialsearcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimized Social Story Searcher using Knowledge Graph

API documentation: https://documenter.getpostman.com/view/9579911/SztK254C

Interface video:

Pre-requisites

Instructions

Importing database

  1. Install Neo4j Desktop from the link
  1. Open Neo4j and create new graph named 'Social Search' but don't run it.

  2. Click on 'Manage' and then click on 'Open Folder'

  3. From the File Explorer, go to 'bin' folder and open command prompt

  4. Run the following command

neo4j-admin load --from=<location_of_graph.db.dump_file> --database=graph.db --force
  1. Now, in the Neo4j application, start the newly created graph database

Installing and setting up python virtual environment

  1. Go to your command prompt and type
pip install virtualenv
  1. Navigate to the project directory
cd socialsearcher
  1. Create a virtual environment using the command
virtualenv env
  1. Activate the virtual environment by typing the command
venv\Scripts\activate
  1. Deactivate using the command
deactivate venv

Installing python dependencies

  1. Navigate to the project directory using command prompt
cd socialsearcher
  1. Activate the virtual environment using the command
venv\Scripts\activate
  1. Run this command to install dependencies
pip install -r requirements.txt --no-cache-dir
  1. Run this command to install preprocessor module
  • if git is installed on system
pip install git+https://github.com/s/preprocessor.git
  • if git is not installed on system
pip install --upgrade https://github.com/s/preprocessor/tarball/master
  1. Input the Twitter API by replacing the placeholder strings in api.py

  2. Run the API from command prompt using

python api.py

User interface

  1. Install nodejs from the following link
  1. Go to the 'UI' folder and run this command using the command prompt to install node modules
npm install
  1. Now, run this command to launch the project
npm start

About

License:MIT License


Languages

Language:JavaScript 49.0%Language:Python 36.5%Language:CSS 12.3%Language:HTML 2.2%