Skip to content

AndyObtiva/sample-glimmer-dsl-web-rails7-app

Repository files navigation

Sample Glimmer DSL for Web Rails 7 App

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

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:

  • bundle
  • rails db:migrate
  • rails s

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

License

MIT

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

--

Built with Glimmer (Ruby Desktop Development GUI Library)

About

Sample Glimmer DSL for Web Rails 7 Application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published