Skip to content

Devang-Shah-49/TRINIT_BUGRESOLVERS_DEV_04

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRI-NIT

Team - Bug Resolvers

Dynamic Entity Clustering

  • Dynamic Clustering of data can improve data processing efficiencies manifold. Let’s say there is an entity with the initial set of parameters. The system is expected to group entities based on “similar” parameters. “Similarity” could mean different things for different parameters. For example, if we consider users as the entity.
  • Possible parameters could be: name, date of birth, gender, age, address, etc. Similarity for gender is an exact match, for age is an exact match, whereas, for name, some partial matching algorithm would be used. The rules for clustering should also be easily configurable, we might initially want to cluster based on name only, but moving forward, we might want to cluster based on age as well.

Extension to this project: https://github.com/Devang-Shah-49/BugResolvers_Datahack

Project Structure

Challenges we ran into

  • Deploying on docker was difficult when using Sockets - Used PusherJS
  • Dynamically sending data: Used PusherJS library, works similar to socket programming
  • Used proximity measures for clustering high dimensional data instead of classical clustering algorithms
  • Making the cluster plots interactive - Used Vis.js, an interactive JS plotting library

Screenshots

image image image

Getting Started

Prerequisites

Cloning the repository locally

  • Clone the project on localhost
git clone https://github.com/Devang-Shah-49/TRINIT_BUGRESOLVERS_DEV_04.git
  • Move to the project directory
cd .\webapp\
  • Install required yarn packages
yarn

Connecting to the Database

  • Spin up your cluster in MongoDB and also create a .env file
  • Replace your connection with URI in .env
  • If you face any problems, refer to the MongoDB website.

Connecting to the Database if you haven't used MongoDB Atlas before

Install the MongoDB Node.js Driver with the following command:

yarn add mongodb

Set up a MongoDB Atlas Database by following this short MongoDB setup video till the 3:20 mark. Stop after that mark!

On your Cluster home page, select CONNECT > Connect your application.

  1. Select Node.js in the drop down for your driver, and select the latest version.
  2. Then, copy the connecting string (URI).
  3. Paste this string as the value of mongoURI inside .env of this project.

Replace the <password> section of the string with your Database Access password. Your server should now successfuly connect to MongoDB!

Running the website locally

  • Execute the command
npm run start

Contributors