Can I make a ruby GUI in javascript/html/css?

this is not a ruby on rails question

I just finished up a ruby basics course on teamtreehouse and I’m sitting
here thinking of what I want to make to demonstrate to myself that I
grasped what I learned.

I have a plan to write a program to automate setting up new hire files
and folders on a network directory at my work at the click of a button.
It might be nice to have a GUI for it instead of running it through the
command line.

First off, is this possible to run ruby with javascript and html without
running it through a server?

I’m trying to think of different ways I would get ruby to speak with
javascript. My first thought was to use a JSON file to produce url links
from in my webpage, but I have no idea how I would run the ruby program
from the web page.

probably a dumb question. Im trying to come up with a good project to
get some confidence in bare bones ruby before I pursue ruby on rails or
sinatra.

Interfaces with javascript and html are for web dev. If you wan GUI
(more like destop application) you should use Gtk+, Qt or Efl .

It exists bindings for those libraries :

the gems gtk2, gtk3, glib, gio .. in the ruby-gnome2 project
qt
ffi-efl

I’m not sure how to link Ruby to it, but on Windows you can combine
VBScript and JavaScript by using a “HTA” file. That might be somewhere
to start looking.

Aron Lilland wrote in post #1181719:

this is not a ruby on rails question

I have a plan to write a program to automate setting up new hire files
and folders on a network directory at my work at the click of a button.
It might be nice to have a GUI for it instead of running it through the
command line.

you can make this type of script with shoes.

I use my own framework, Ruiby, which is based on gtk3.
see GitHub - glurp/dsl-gtk: DSL for make a simple ruby GUI application

First off, is this possible to run ruby with javascript and html without
running it through a server?

With Electon, you get a navigator which use heavy client
(can access to local files system and to network)

Then you can use Opal (ruby interpreter in javascipt) for
writing ruby code in your electron pages :

It’s seem that Flammarion has do this kind of work:
http://zachcapalbo.com/projects/flammarion.html