rails_event_store icon indicating copy to clipboard operation
rails_event_store copied to clipboard

POC: Browser working from git source

Open mostlyobvious opened this issue 4 years ago • 2 comments

It was never possible to use rails_event_store from git source and have a functioning browser: #583.

gem 'rails_event_store', github: 'RailsEventStore/rails_event_store', branch: 'store-ci-assets'

We only version sources. Assets are bundled and baked into released browser gem.

Yet, with little help of:

  • CI building assets out of every pushed commit
  • S3 storing each of built assets and making them addressable by sha/name
  • Cloudfront CDN making fetching assets quick
  • Bundler letting us know that activated gem comes from git

we're finally able to make this surprise thing of a past. Also unblock some early adopters 😀

That's mostly proof of concept. It works but needs rewrite, and actually building assets of all pushed commits, not only the last one.

Seeing is believing:

 $LOAD_PATH.select { |x| x.end_with? "ruby_event_store-browser/lib" }
=> ["/Users/mostlyobvious/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/bundler/gems/rails_event_store-151d0dfbec24/ruby_event_store-browser/lib"]
http://d3iay4bmfswobf.cloudfront.net/151d0dfbec24/ruby_event_store_browser.css
Zrzut ekranu 2021-09-12 o 22 38 08 Zrzut ekranu 2021-09-12 o 22 54 06

What do you think?

mostlyobvious avatar Sep 11 '21 20:09 mostlyobvious

What's stopping us here?

jandudulski avatar Jul 01 '22 13:07 jandudulski

What's stopping us here?

Probably one more rebase since I had to resurrect separate CSS assets for [#1346] 🙃

I'd love to have it to experiment with some browser ideas on more production-like data!

mostlyobvious avatar Jul 06 '22 07:07 mostlyobvious

not to myself: alias CDN domain

mostlyobvious avatar Sep 14 '22 14:09 mostlyobvious