Skip to content

AlphaHydrae/server-side-clustering-mongodb

Repository files navigation

Server-side clustering with MongoDB

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

See it in action!

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).

About

Server-side map clustering algorithms with MongoDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published