Giter Site home page Giter Site logo

slim-bower-server's Introduction

Slim Bower Server

This is a PHP based implementation of a bower-server used by the excellent package manager Bower.

It's built using:

and currently configured OTB to use sqlite (Why? see below)

Overview

The original aim of this project was to get a server up running as fast as possible to evaluate the usage of Bower where I currently work for managing code dependencies between projects.

Since we already had an existing development PHP server available it made sense to use this rather than setting up a new VM with node.js, DB etc. If you've worked in corporate environments before you'll understand why.

It currently uses an sqlite database, but due to PHPActiveRecord being used it's very easy to switch to another database (see app/config.php).

Installation

Installation will vary depending upon your server configuration, but the basics are detailed below.

Checkout

> git clone https://github.com/indieisaconcept/slim-bower-server.git myproject
> cd myproject
> rm -rf .git (should you wish to add to your own version control)

Dependencies

Dependencies are managed using Composer.

> curl -s https://getcomposer.org/installer | php
> php composer.phar install

Usage

Ensure you update your .bowerrc either at a global or project level to use your custom server endpoint.

{
	...
	"endpoint": 'http://some.host.com.au'
	…
}

Create package

curl http://some.host.com.au/packages -v -F 'name=jquery' -F 'url=git://github.com/jquery/jquery.git'

Find package

curl http://some.host.com.au/packages/jquery
  {"name":"jquery","url":"git://github.com/jquery/jquery.git"}

Search package

curl http://some.host.com.au/packages/search/jquery
  [{"name":"jquery","url":"git://github.com/jquery/jquery.git"}, {"name":"jquery-ui","url":"git://github.com/jquery/jquery-ui.git"}]

slim-bower-server's People

Contributors

indieisaconcept avatar

Watchers

 avatar  avatar

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.