Great. I hope to use this one in future projects ( i am an amateur,
but this sounds quite attractive to me).
For other ideas, you can take a look at other examples we have:
https://github.com/opal/opal-browser/tree/master/examples
The biggest upside is that you will be able to write both frontend
and
backend in Ruby, allowing you to share code between those. The
downside
is that this Gem has not a lot of users, so you may have problems
Googling solutions. Other downside is that it's not a full-fledged
integration (requiring you to find out how to pass data
client-to-server
and vice versa) and it's more like jQuery than Vue or React.
To reiterate, using this library will require no knowledge of JS
from
you, but you will still need to learn more or less about DOM. The
Opal
community also provides active support channels if you would happen
to
hit a roadblock.
With Roda-Sprockets you will also be able to easily integrate
anything
you would choose for CSS (like Sass, Bootstrap, etc.).
On 11/25/21 11:08, Kendall Wagner wrote:
Hi Saji,
Thanks for the information.
I may not use a static page generator, so webgen is ignored.
For Roda I have other questions:
#1 Does it have an integrated front-end framework such as Vue?
#2 What's the difference between Roda and Sinatra?
#3 Does it support ORM?
Thanks.
On Thu, Nov 25, 2021 at 4:35 PM Saji Hameed <saji@u-aizu.ac.jp> >> wrote:
Hi Kendall,
I recommend you to use Roda, a web framework in ruby to
present
your results, if you want a dynamic website -- i.e., one where
your viewers can
ask your software to create some customized data analysis or
plots
on the fly.
This is usually not needed, because you have probably a
collection
of analysis that were made before. In this case, you can just
use
a ruby library called
webgen to make a static website.
You can also combine both in a useful way.. In this case, the
dynamic site is used only by you to store some metadata (for
example how to organize
the information into various sections, subsections etc.) and
also
data (figures, writeup etc). Then, you will pull what you
need
from the database (created by the dynamic website), and use a
script to transform those into content that can be used by
webgen.
I used this approach here
Saji Hameed / motus_natus · GitLab. Here motus_natus.rb
is
the central program for my dynamic content management backend.
The script create_static_site.rb collects data from the
backend
and creates necessary files needed for webgen to do its job
(in
static_site/src).
Hope this gives you some ideas. This is not a quick way, but
your
site may be more sustainable into the future.
saji
On Thu, Nov 25, 2021 at 4:28 PM Kendall Wagner >>> <kendawagner@gmail.com> wrote:
Dear community,
Since I am a data scientist, most of the time I use R,
python,
and some ruby for my jobs.
I have zero experience as a front developer including
JS/CSS etc.
If I want to present my result to other people with a
simple
web interface, what do you think I can do to get started
quickly?
Have a nice day~
Kendall
Unsubscribe:
<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
--
Unsubscribe:
<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Unsubscribe:
<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Unsubscribe:
<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>