This is an mongodb adapter for micro-analytics.
npm install micro-analytics-cli micro-analytics-adapter-mongodb
DB_ADAPTER=mongodb micro-analytics
npm install micro-analytics-cli micro-analytics-adapter-mongodb
DB_ADAPTER=mongodb MAA_MONGODB_URL=mongodb://mongodb-instance2.test.site:27017/analyticsdb micro-analytics
Provide the mongodb connection string via MAA_MONGODB_URL environment variable while starting micro-analytics. Defaults to localhost with port 27017 when connection string is not provided.
Run
MAA_MONGODB_URL=mongodb://localhost:27017/analyticsdb-test npm test