Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/component-github-proxy
An express handler that will download and compile components from github dynamically
https://github.com/binocarlos/component-github-proxy
Last synced: 11 days ago
JSON representation
An express handler that will download and compile components from github dynamically
- Host: GitHub
- URL: https://github.com/binocarlos/component-github-proxy
- Owner: binocarlos
- Created: 2013-12-16T17:03:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-16T17:44:52.000Z (almost 11 years ago)
- Last Synced: 2024-08-09T02:54:45.649Z (3 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
component-github-proxy
======================An express handler that will download and compile [components](https://github.com/component/component) from github dynamically
```js
var Proxy = require('component-github-proxy');
var app = express();
var server = http.createServer(app);var proxy = Proxy({
tmpfolder:'/tmp/wheretobuildcomponents'
})app.use('/builds', proxy);
server.listen(80, function(){
})
```Using the above setup we can request the following URLs to have the javascript and css for the component:
```html
```
Until improvements are made you need to request the javascript first before the css can be served. This only applies to the first time you compile a component.