GithubHelp home page GithubHelp logo

cower's Introduction

Cower

Simple Bower registry written in Clojure over a Redis store.

NOTE: This was done as a proof-of-concept as much as anything else and isn't ready for a heavy-usage environment: there is no testing or configuration for example. Having said that, it might be fine for a dev team server. Use or fork as you wish!

The REST API for the registry is based on bower/registry. The exception is the DELETE method against the packages/:name resource for unregistering a component - this is purely added for use via the likes of curl rather than bower itself.

Licensing

Provided under the MIT License. Have fun.

Prerequisites

You will need Leiningen 2.x installed.

Running

lein ring uberjar
cd bin
./start-cower

Sysout and syserr are redirected to bin/cower.log. Note that the start-cower shell script is simply provided as an example of how one might kick-start Cower - modify as appropriate to needs.

Development

To start a web server for the application, run:

lein ring server

Using the registry

The Bower spec has details on how to configure your local Bower installation to make use of custom registries like Cower. Take a look in the 'Configuration' section and, in particular, the registry object.

Essentially though, you just need a ~/.bowerrc that looks something like this:

{
    "registry": {
        "search": [ "http://<cower host>:3000", "http://bower.herokuapp.com" ],
        "register": "http://<cower host>:3000",
        "publish": "http://<cower host>:3000"
    }
}

Or, if you don't want to faff around with your Bower config, you can specify Bower configuration on the fly like this:

bower register mypackage myurl --config.registry=http://<cower host>:3000

Using from behind a company proxy

If you're anything like me, you'll want to bypass your http proxy to access your internal bower registry. Unfortunately, bower doesn't have a "no_proxy" type of setting; therefore you'll need to specify it on the fly:

bower install mypackage --config.proxy=

cower's People

Contributors

kelveden avatar joelittlejohn avatar

Stargazers

 avatar

Watchers

 avatar  avatar James Cloos avatar

Forkers

joelittlejohn

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.