Node app that generates a .zip for a particular bower install. The backend (zipper.bowerarchiver.appspot.com) runs on Google Compute Engine as managed VM. The frontend (bowerarchiver.appspot.com) runs on Google App Engine.
The cloud console page is at https://console.developers.google.com/project/apps~bowerarchiver/compute/instances. From here, you can ssh into machines, manage the VMs, and project settings.
-
Install the code from github
git clone https://github.com/PolymerLabs/bowerzipper
-
Make your changes.
-
Deploy the frontend and/or backend using:
gcloud preview app deploy frontend/ --project bowerarchiver gcloud preview app deploy zipper/ --project bowerarchiver # gcloud --verbosity debug preview app deploy zipper/ --server preview.appengine.google.com
The frontend allows you to download components: bowerarchiver.appspot.com
.
You should be able to hit the endpoint and download stuff. You can also pass params directly to interact with the web service:
-
Single component takes the form
<name>=<org>/<name>
:http://bowerarchiver.appspot.com/archive?core-ajax=Polymer/core-ajax
-
Multiple components are separated by
&
:http://bowerarchiver.appspot.com/archive?core-ajax=Polymer/core-ajax&core-field=Polymer/core-field
-
By default, the zipper tool will fetch the latest release of a component. You can specify a particular tag using:
<name>=<org>/<name>%23<VERSION>
:http://bowerarchiver.appspot.com/archive?core-ajax=Polymer/core-ajax%23^0.8
git clone https://github.com/PolymerLabs/bowerzipper
cd bowerzipper
npm install
node server.js
Hit http://localhost:8080/archive?core-ajax=Polymer/core-ajax
These instructions are only necessary if you want to run the local app using Docker.
-
Install Docker
-
Download boot2docker
ssh into the docker VM and allow listening on 8080:
boot2docker ssh -L 8080:localhost:8080
git clone https://github.com/PolymerLabs/bowerzipper
sudo docker build -t bowerzipper bowerzipper/
sudo docker run -d -p 8080:8080 bowerzipper
Hit http://localhost:8080/archive?core-ajax=Polymer/core-ajax