Code Monkey home page Code Monkey logo

ksql-ui's Introduction

ksql-ui

CircleCI

How to setup in your local environment

  • Install sbt
$ brew install sbt
  • Install Node.js
$ brew install node
  • Install yarn
$ npm install -g yarn
  • Install dependent javascript libraries
$ cd /path/to/ksql-ui
$ yarn install

How to launch in local

Specify the your KSQL server with the environment variable KSQL_API_SERVER

If the environment variable KSQL_API_SERVER is not set, it will connect to http://localhost:8080

$ cd /path/to/ksql-ui
$ KSQL_API_SERVER=http://your_ksql_server sbt
[info] Loading global plugins from /path/to/.sbt/0.13/plugins
[info] Loading project definition from /path/to/ksql-ui/project
[info] Set current project to ksql-ui (in build file:/path/to/ksql-ui/)
[ksql-ui] $ run
[info] Updating {file:/path/to/ksql-ui/}root...
[info] Resolving jline#jline;2.14.4 ...
[info] Done updating.

--- (Running the application, auto-reloading is enabled) ---

[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Enter to stop and go back to the console...)

Caution

After that, you must build javascript sources on an another terminal.
You can choose yarn build or yarn watch.
Either doesn't no problem, but yarn watch seems useful more than yarn build.
yarn watch command compiles the souces continuously.

$ cd /path/to/ksql-ui
$ yarn watch

After that, an archive will be generated to target/universal

How to launch in production

package

$ cd /path/to/ksql-ui
$ sbt clean universal:packageZipTarball

launch

$ tar xvf ksql-ui-x.x.x.tgz
$ APPLICATION_SECRET=your_secret KSQL_API_SERVER=http://your_ksql_server ./ksql-ui-x.x.x/bin/ksql-ui -Dlogger.resource=logback-prod.xml

How to launch with Docker

docker build

$ docker build -t ksql-ui .

docker run

$ docker run -p 9000:9000 -e APPLICATION_SECRET=your_secret -e KSQL_API_SERVER=http://your_ksql_server ksql-ui

ksql-ui's People

Contributors

justaparth avatar matsumana avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ksql-ui's Issues

add websocket sample

processing flow the following.

[browser] <---(websocket)---> [ksql-ui] <---(http)---> [ksql-server]

  1. browser executes sql
  2. ksql-ui relays a sql to a ksql-server *ksql-ui needs async processing (use akka)
  3. ksql-ui receives a response from a ksql-server
  4. ksql-ui sends a response to a browser

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.