Skip to content

Loading…

Add documentation on how to setup local repository #110

Open
arikon opened this Issue · 5 comments

4 participants

@arikon

The feature to use local repo is great!
But there are no docs how to set it up.

@ryanramage
Collaborator

@arikon I just published this yesterday:

http://garden20.com/market/details/jam

Its a very easy to install local jam repo. Hope that helps you get started!

But yes, I agree that documenting all the ways to setup a local repo should be added to the docs section of the main website.

@akoptsov

@clexit your guide was most helpful.

The one thing that you didn't cover and which I didn't manage to do on my own was to make the frontend from

http://jamjs.org/repository/_design/jam-packages

work on my server

@clexit

It's easy, I've just quickly scribbled one with Twitter Bootstrap. I can share it if anyone needs it.

You can work with jamjs through a simple server-side proxy.

@clexit

@akoptsov You can use php proxy like

$data = json_encode( array() );
if ( isset( $_GET[ 'url' ] ) )
{
    $url = urldecode( trim( $_GET['url'] ) );
    $data = file_get_contents( $url );
}
print $data;

to get AJAX work with cross-domain requiests and then get data from local repository (probably the same domain) and from jamjs.org (cross-domain) through proxy, and show all resuts on one page.

Is it what you want?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.