All Projects → gregberge → bower-registry

gregberge / bower-registry

Licence: other
Simple bower registry using node and redis.

Programming Languages

javascript
184084 projects - #8 most used programming language

bower-registry

This plugin is no longer actively maintained, you can still use it but issues will not be resolved. If you want the npm name, you can contact me by email.

Build Status Dependency Status devDependency Status

Simple bower registry using node and redis.

Install

npm install -g bower-registry

How to use

From command line

bower-registry -d redis

In node

var bowerRegistry = require('bower-registry'),
    Registry = bowerRegistry.Registry,
    RedisDb = bowerRegistry.RedisDb;

var registry = new Registry({
  db: new RedisDb()
});

registry
  .initialize()
  .listen(3000);

Command line

  Usage: bower-registry [options]

  Options:

    -h, --help                output usage information
    -V, --version             output the version number
    -d, --database <value>    Database
    -o, --db-options [value]  Database options
    -p, --port <value>        Web server port
    -h, --host [value]        Web server host
    -P, --private             Accept private packages and allow packages hosted on private servers

Example

# Start registry server on port 8080 using redis (port 6379, host 127.0.0.1)
bower-registry -p 8080 -d redis -o '{"port": 6379, "host": "127.0.0.1"}'

Database options

Redis

  • port: redis instance port
  • host: redis instance host
  • other options available in node_redis

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].