GithubHelp home page GithubHelp logo

jkronborg / query-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from couchbase/query-ui

0.0 0.0 0.0 8.77 MB

The Couchbase query workbench UI for SQL++ / N1QL.

License: Other

CMake 0.04% JavaScript 88.23% CSS 0.89% HTML 3.85% Go 0.86% Batchfile 0.07% Shell 0.11% Yacc 4.53% Makefile 0.08% ANTLR 1.34%

query-ui's Introduction

query-ui

This repository contains the resources used for the Couchbase Query Workbench, which is a plug-in for the Couchbase Administrative Console. This code can also be run in a stand-alone mode, for users who are not administrators. This document primarily describes the latter use, in stand-alone mode.

Steps to create a build

You will need to have golang installed on your platform.

Get a working repository

 $ mkdir $HOME/standalone
 $ export GOPATH=$HOME/standalone
 $ mkdir -p $GOPATH/src/github.com/couchbase/
 $ cd $HOME/standalone
 $ mkdir bin pkg

Clone the git repo into the current working directory, to get the source, so as to be able to make a build. This clones it into query:

 $ cd $GOPATH/src/github.com/couchbase/
 $ git clone ssh://github.com/couchbase/query-ui query-ui
 $ cd query-ui
 $ go get .
 $ cd $GOPATH
 $ go install -v -gcflags "-N -l" ./src/github.com/couchbase/query-ui

This creates an executable called 'query-ui' in the $GOPATH/bin directory.

Running the tool with Couchbase

To run in standalone mode, you need to tell the executable where to find a Couchbase server, and where to find all the web resources.

$GOPATH/bin/query-ui -webcontent=$GOPATH/src/github.com/couchbase/query-ui/ -datastore=http://localhost:8091

which should produce the following output messages:

Launching query web service.
Using CB Server at: http://localhost:8091
Using N1QL query service on: localhost:8093
Using mgmt query service on: localhost:8091
Using web content at: /Users/eben/src/standalone/src/github.com/couchbase/query-ui/query-ui
Launching UI server, to use, point browser at http://localhost:8095

If you want to have it use a specific query engine, you can specify that instead:

$GOPATH/bin/query-ui -webcontent=$GOPATH/src/github.com/couchbase/query-ui/ -queryEngine=http://localhost:8093

The UI will be accessible via a web browser, by default on http://localhost:8095.

The UI is the same as is found in the Couchbase administrative console.

Running the tool with CBAS

This UI can also run against an instance of CBAS, where you give it the URL for CBAS as the -queryengine, and tell it the REST prefix to use instead of /query:

$GOPATH/bin/query-ui -webcontent=$GOPATH/src/github.com/couchbase/query-ui/ -queryEngine=http://localhost:8095 -queryPrefix=/analytics -localPort=:8096

Because CBAS defaults to port 8095 as well, you need to tell it to put the UI on a different port, in this example 8096.

query-ui's People

Contributors

ebenhaber avatar robashcom avatar pavel-blagodov avatar mhubail avatar dave-finlay avatar mikewied avatar alisolaiman avatar bbrks avatar mattcarabine avatar mblow avatar lukaisthewolf avatar abhinavdangeti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.