couchbaselabs / cbgb

an experimental server, the birthplace of punk, and a future backcronym
60 stars 9 forks source link

How is cbgb configured? #5

Open tleyden opened 9 years ago

tleyden commented 9 years ago

How do I create a bucket?

tleyden commented 9 years ago

I think I may know one answer: use the same REST api call as you would with Couchbase Server?

The output states that there is web ui available, but when I try to go to http://HOST:8091, I get:

cbgb is missing its UI

cbgb was not given a usable UI and could not fetch one from the internet. The REST API will continue to work, but no admin UI will be available to you until you fix whatever got you here.

For more info, check your logs and stuff.
mschoch commented 9 years ago

Same as #4. Since hosted download isn't working, point it to static folder in git repo. Should be command line arg to configure the path.

tleyden commented 9 years ago

Ok thanks, that gives me enough to go on in order to dig into this

steveyen commented 9 years ago

Yep, what @mschoch said. For example, I used...

$ pwd /Users/steveyen/go/src/github.com/couchbaselabs/cbgb $ ls ./static/ angular.min.js app.css app.html app.js bootstrap cbgb.ico d3 lodash.min.js partials $ ./cbgb -static-path=./static 2015/02/27 17:06:05 cbgb - version 0.0.0 2015/02/27 17:06:05 ------------------------------------------------------- 2015/02/27 17:06:05 warning: running openly without any adminUser/adminPass 2015/02/27 17:06:05 warning: please don't run this way in production usage 2015/02/27 17:06:05 ------------------------------------------------------- 2015/02/27 17:06:05 data directory: ./tmp 2015/02/27 17:06:05 loading bucket: default 2015/02/27 17:06:05 primary connections... 2015/02/27 17:06:05 connect your couchbase client to: http://HOST:8091/pools/default 2015/02/27 17:06:05 web admin U/I available on: http://HOST:8091 2015/02/27 17:06:05 secondary connections... 2015/02/27 17:06:05 view listening: :8092 2015/02/27 17:06:05 data listening: :11210

tleyden commented 9 years ago

Can buckets be added via rest api? Does couchbase-cli work?

mschoch commented 9 years ago

I think this chunk of code shows how to create a bucket with the REST api:

https://github.com/couchbaselabs/cbgb/blob/53841e4a2179428e1968e4154d1797a2503ecf0a/static/app.js#L165-L181