Skip to content

esakkiraj/adapter-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-analytics-adapter-mongodb

This is an mongodb adapter for micro-analytics.

Usage

npm install micro-analytics-cli micro-analytics-adapter-mongodb
DB_ADAPTER=mongodb micro-analytics

Configuration

Connection

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.

Testing

Run

MAA_MONGODB_URL=mongodb://localhost:27017/analyticsdb-test npm test

About

Mongodb adapter for Micro-analytics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published