requires node.js 0.8+
$ npm install civicquarterly/cq-metrics-server
$ npm start
- PORT http port it listens on, e.g. 9000
- GA_CLIENT_ID
- GA_CLIENT_SECRET
- GA_ACCESS_TOKEN - for a user with access to the Google Analytics profile
- GA_REFRESH_TOKEN - for a user with access to the Google Analytics profile
- GA_PROFILE_ID - the profile id, e.g. "ga:123432"
- STRIPE_KEY - key with read access to the stripe account
CORS is enabled for all GET endpoints
sample response:
{
monthlyUniques: 100000
}
From package root:
$ npm install
$ npm test
- jden [email protected]
ISC. (c) MMXIV jden [email protected]. See LICENSE.md