Code Monkey home page Code Monkey logo

npmjs-download-stats's Introduction

npmjs-download-stats

Build Status

Sample deployment, tracking Node.js packages developed by members of (https://github.com/ibm-cds-labs)

Deploy on Bluemix

 $ git clone https://github.com/ibm-cds-labs/npmjs-download-stats
 $ cd npmjs-download-stats
 $ cf create-service cloudantNoSQLDB Lite npmjs-cloudant
 $ cf push

Run locally

Download and install the code and its dependencies

 $ git clone https://github.com/ibm-cds-labs/npmjs-download-stats
 $ cd npmjs-download-stats
 $ npm install
 $ cf create-service cloudantNoSQLDB Lite npmjs-cloudant
 $ cf create-service-key npmjs-cloudant Credentials-1
 $ cf service-key npmjs-cloudant Credentials-1

If you use a service instance name other than npmjs-cloudant set environment variable COUCH_INSTANCE_NAME.

  • Copy file vcap_services_template.json to vcap_services.json.
  • In vcap_services.json replace the TODO placeholders with your Cloudant instance information.
 $ cf push

npmjs-download-stats's People

Contributors

ptitzler avatar

Watchers

G Adam Cox avatar Mike Elsmore avatar James Cloos avatar Alexia Tanski avatar Maureen McElaney avatar Jess Mantaro avatar Chetna Warade avatar  avatar

npmjs-download-stats's Issues

Refresh stale deployment statistics

Deployment statistics for the current month can become stale very quickly - typically by the next day. While we don't aim for a daily collection cycle to keep the stats current, stale data must be cleaned up once it doesn't change anymore , which is at the beginning of the new month.

Persist configuration information

Persist the following information in the metadata repository database:

  • Package list, identifying which packages this service instance will monitor
  • Date range, identifying which months/years this service instance will monitor

If no configuration document is found in the metada repository database, a default shall be created.

UI: Add service configuration page

Currently the service is configured by updating the config document in the metadata repository database. Provide a UI to make this update within the application. Administrators should be able to enable security to restrict who can modify the service configuration.

Setup automatic data collection

Currently data collection is only performed when the application is started. Going forward this process needs to be triggered when the application configuration changes (in a significant way) and periodically (e.g. at the beginning of a month) when new data becomes available.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.