An open API service indexing awesome lists of open source software.

https://github.com/alphahydrae/server-side-clustering-mongodb

Server-side map clustering algorithms with MongoDB
https://github.com/alphahydrae/server-side-clustering-mongodb

Last synced: about 1 year ago
JSON representation

Server-side map clustering algorithms with MongoDB

Awesome Lists containing this project

README

          

# Server-side clustering with MongoDB

This web app demonstrates how to implement some server-side map clustering algorithms with MongoDB.

[See it in action!](https://ssc-mongodb.herokuapp.com/)

## Local usage

Requirements:

* MongoDB 4+
* Node.js 14+

Install and run it:

git clone https://github.com/AlphaHydrae/server-side-clustering-mongodb.git
cd server-side-clustering-mongodb
npm ci
npm start

Generate more points:

DEBUG=ssc* SSC_COUNT=50000 npm start

## Configuration

* Set `$MONGODB_URI` or `$DATABASE_URL` to use another database connection URL (defaults to `mongodb://localhost/server-side-clustering`).
* Set `$SSC_CLEAR` to clear and re-generate points data.
* Set `$SSC_COUNT` to generate more points (defaults to `1000`).