Embedded UI for any service that implements the Rancher API spec
Go to file
Vincent Fiduccia cf93f899dc Disable explorer view unless debug cookie is set 2012-12-19 10:50:50 -07:00
public Disable explorer view unless debug cookie is set 2012-12-19 10:50:50 -07:00
.gitignore Initial import 2012-11-05 12:03:48 -07:00
README.md Usage info 2012-12-05 17:08:18 -07:00
assets.json Asset reorganization 2012-11-29 17:44:55 -07:00
compile Asset reorganization 2012-11-29 17:44:55 -07:00
package.json bump version 2012-12-18 14:04:32 -07:00
serve Asset reorganization 2012-11-29 17:44:55 -07:00

README.md

gdapi-ui

An in-browser client for Go Daddy® REST APIs

Usage

Compiling the stand-alone CSS and JavaScript files

This will write files to ./compiled/{version}/, suitable for publishing to a CDN.

  ./compile

Standalone server

This will start a server on the given port number (default: 3000) that serves up the assets directly. This mode is mostly suitable for development of this library itself.

  ./serve [port]

As part of another Node.js Connect/Express service

This will add a route into your Connect/Express service to respond with the appropriate asset. This mode is suitable for integrating with an existing project that already has a server running.

var express = require('express');
var app = express();

// Your existing routes
app.get('/', function(req, res){
  res.send('Hello World');
});

var assets = require('gd-assets');
var groups = assets.groups.load(__dirname+'/assets.json');
assets.middleware(app, groups)

app.listen(3000);