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
- Host: GitHub
- URL: https://github.com/alphahydrae/server-side-clustering-mongodb
- Owner: AlphaHydrae
- License: mit
- Created: 2016-12-09T23:07:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T14:53:30.000Z (over 3 years ago)
- Last Synced: 2024-04-11T05:09:10.438Z (over 2 years ago)
- Language: JavaScript
- Homepage: https://ssc-mongodb.herokuapp.com/
- Size: 271 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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`).