Skip to content

ricksr/cluster-anywhr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cluster-anywhr

cluster contains the API cluster-shows contains the Front end form and hex structure

in cluster :

overview :

  1. You can add a hexagon to a node and it gets reflected, you can only add , if there is no hex connected to that particular border .
  2. once you add , it gets connected to its neghbour and reflected in the grid structure in frontend .
  3. you can delete a hex using its name .
  4. you can only delete , if it's not a bridge and even if it connects to other clusters ( strongly connected components ) , there are other ways to reach that particular node from that other component .

*Though the connections are not directed , each cluster is connected ( strongly is not the correct keyword :p ) *https://www.redblobgames.com/grids/hexagons/

used aws - lambdas for API's

DB - idea :

Three table :

  1. hexagons: uniquely identifies a Hexagon
  2. clusters: uniquely indentifies neighbours of a hexagon using all UUID's , so search queries are at depth = 1
  3. locations: uniquely locates a hex

comfortable :

Tech stacks :

python , flask, JS , reactjs , aws lambda , serverless , graphql

Local setup - backend:

  1. clone it
  2. cluster ( move to cluster directory)
  3. https://github.com/ricksr/cluster-anywhr/blob/master/cluster/README.md ( Follow this )

Local setup - Frontend:

  1. show_cluster( move to show_cluster directory )
  2. npm i
  3. npm start
  4. change url in app.js to localhost:3000/prod/ , to make it point to local setup , initially it is setted to hosted aws URL

Result

DB HIDDEN API WAIT FOR 🥶 TIME