Git Product home page Git Product logo

rig's Introduction

📈 rig         (redbean-interactive-grapher)        


(This proof-of-concept was intended for single-use but it is made public here in case others might be interested!)

made with readbean 1.0 redbean-1.0.com redbean-1.0.com.dbg

The code here is NOT intended to be an example of best-practice in Javascript, Lua or the use of αcτµαlly pδrταblε εxεcµταblεs and redbean. It uses garish colours specifically because the intent is for others to make modifications! All of the source code is to be found within index.html - no external CSS or Javascript, no Javascript framework even though I itched to find an excuse to use Hyperapp. This was really an opportunity to play with what an ape webapp means!

SQLite in the browser comes thanks to SQL.js. Code highlighting thanks to Prism and Yace.

user interface

This is a poorly accessible web application, if anyone is interested in better access please reach out - I'm super happy to help.


Install

  1. Download the latest rig.com ape
  2. Make rig.com executable according to your platform
  3. Run it (a new browser window should open to http://localhost:8080)

To be sure the story involves trusting that this executable will do nothing untoward. If you on are a Mac you will need to explicitly verify that you are okay with execution by visiting System Preferences|General and pressing the Allow Anyway button next to the message about rig.com coming from the untamed wilds.


Usage

🟠 The SQL (in orange!) pane accepts queries against the in-memory DB. CTRL-Enter executes these.

🟢 Up to 10 rows of results represented in JSON appear in the Data pane (in green!) including a tiny actual row count.

🟣 The Javascript pane (in purple!) accepts JS and again executes when CTRL-Enter is pressed. To automate code execution whenever a SQL query is executed, check the checkbox!

Loading files is available using the ⇱ button in the top left-hand corner, and saving is available with the ⇲ button in the top right-hand corner of the screen. Remote files can be loaded by pasting a URL.


Notes

  • In queries we avoid joining to the location table for improved speed since this table is really just a static lookup table for location names and information. Using it in a legend for the graph may be sensible.

rig's People

Contributors

cdrubin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rayleyva

rig's Issues

Cannot run in Windows 10 Pro

Hi,
I tried loading the rig.com file (https://github.com/cdrubin/rig/releases/download/0.2/rig.com) and running it on Windows 10 Pro.
It only starts a terminal window but after waiting couple of minutes nothing happens. I tried loading localhost:8080 and 127.0.0.1:8080 in the browser but the page does not load.

I also tried changed the file extension to .exe but after running it Windows 10 said rig.exe might be a trojan(Script/Wacatac.B!ml). Hopefully this was just a case of "eager heuristics" as in here (https://answers.microsoft.com/en-us/protect/forum/all/overly-eager-heuristics-for-trojanwin32wacatacbml/6f2a72f3-3978-48ac-9fb7-fbe82c686ae3).

static assets found here

(this is not really an issue, it is a way to have GitHub save these assets for use in wiki pages)

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.