Home

Awesome

Sample Glimmer DSL for Web Rails 7 App

<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 /> Glimmer DSL for Web Application

This is a sample app built with Glimmer DSL for Web (Ruby in the Browser Web GUI Library).

You can access a deployed version of it by clicking on this link:

https://sample-glimmer-dsl-web-rails7-app-black-sound-6793.fly.dev/

Setup Instructions

Note that you need Ruby 3.2.2 to run this project.

This is a standard Rails app. As such, you may setup locally by cloning the repository and running the following commands from inside the app directory:

Visit localhost:3000 in the web browser and You should see a Sample Selector app.

Sample Screenshot

The Sample Selector Single-Page Application Frontend is written in Ruby using Glimmer DSL for Web in this file:

app/assets/opal/sample_selector.rb

It is loaded from an ERB View using the glimmer_component Rails helper:

app/views/welcomes/index.html.erb

Note that if you are upgrading your setup by pulling a newer commit of this project and re-running bundle (or bundle update), then before running rails s, you should also clear the Opal cache as follows (or else you would get an error about missing files from older versions of gems):

rm -rf tmp/cache

Todo MVC

License

MIT

Copyright (c) 2023-2024 Andy Maleh. See LICENSE.txt for further details.

--

<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 /> Built with Glimmer (Ruby Desktop Development GUI Library)