Skip to content

Glow-Lang/gloui

Repository files navigation

GloUI (gloui)

A User Interface for Glow dapps on Blockchain Networks.

Installation

First, Install Glow. You currently also need a working Gerbil scheme installation.

Then install the gerbil package.

gxpkg install github.com/drewc/gloui

Now run the server.

gxi -e "(import :mukn/gloui/gloui)" -e '(start-server!)' -e '(display "started GloUI Server\n")' -

With the server running, head over to https://localhost:6741 wait 30 seconds or so for it to load. Done!

Development

Install the dependencies

yarn

Start the app in development mode (hot-code reloading, error reporting, etc.)

quasar dev

Build the app for production

quasar build

Customize the configuration

See Configuring quasar.conf.js.

Tangle : Extracting Source

So, to tangle code in emacs, org-babel-tangle-file is the function, and the interactive org-babel-tangle (C-c C-v C-t) is of good use if you happen to use emacs as your editor.

(import :std/misc/process)
  ;; # Change to where this file lives
  ;;  cd "$(dirname "$0")"

(def srcdir (path-normalize (path-directory (this-source-file))))

(def source-of-source
  '("README.org"
    ;;"doc/log/0000-Getting-Started.org"
    ;;"doc/log/0001-Static-File-Server.org"
    "doc/gerbil.org"
    "doc/ftw.org"
    "doc/process.org"
    "doc/entity.org"
    "doc/json.org"
    "doc/identities.org"
    "doc/contacts.org"
    "doc/ethereum-networks.org"
    "doc/erc20.org"
    "doc/widgets.org"))

;; # Use Emacs to tangle the files.
;;    tangle() {
;;        emacs --batch -l org --eval "(org-babel-tangle-file \"$1\")"
;;    }

(def (tangle srcdir file)
  (display
   (run-process ["emacs" "--batch" "-l" "org" "--eval"
                 (string-append" (print (org-babel-tangle-file \""file"\"))")]
                directory: srcdir)))

;; # Tangle the files!

(for-each (cut tangle srcdir <>) source-of-source)