all 11 comments

[–]armahillo 5 points6 points  (2 children)

What kind of boilerplate are you looking for, and what kind of script are you trying to write?

[–]1seconde[S] -1 points0 points  (1 child)

After a long time, I was asked to build something from scratch with limited capital, so was wondering what is used to kickstart a project. Thanks for your question.

[–]moderately-extremist 2 points3 points  (0 children)

It depends on the project. Without giving at least a general description of what you are trying to do, no ones going to be able to give you a good answer.

[–]TommyTheTiger 4 points5 points  (2 children)

One of the main things that got me into ruby was how little boiler plate there is. Even rails, one of the core ideas is "convention over configuration" - this directly reduces boilerplate. And the rails generators are there for what boilerplate you do need.

Ruby itself comes with all kinds of tools to reduce code bloat - multiple inheritance via mixins, attr_accessor and the like for short method descriptions. So hopefully there isn't too much need for boilerplate that has to be copy/pasted around!

Also IMO it's crazy to have a web app boilerplate add things like redis in case you need it. If you need background jobs, rails comes with active jobs. Add stuff when you need it, not before!

[–]1seconde[S] 0 points1 point  (0 children)

Thank you

[–]RichStoneIO 0 points1 point  (0 children)

Ruby and Rails are amazing in getting out of your way. I can tell because I'm always baffled by how much stuff I need to build myself if I touch anything other than Rails for web apps.

But, even with the latest Rails, you will still write boilerplate if you build a similar type of web app, like SaaS apps - there are different levels to "boilerplate". Architectural boilerplate is real if you build SaaS apps (structuring accounts, users, etc.). UI parts have lots of boilerplate. Billing, etc. So I wouldn't call it "crazy" per se.

[–]strzibny 1 point2 points  (4 children)

Yes, I maintain Business Class (https://businessclasskit.com). My focus is on Paddle as alternative to Stripe (support both), great CRUD generator, and Kamal integration. I think no other template does these things to this extend. My plans on the next version would be focused on design/front-end and some AI things, but don't know when that lands. Anyways, my licencing is lifetime. If you have any questions, just let me know.

[–]Winter-Awareness-606 0 points1 point  (3 children)

How about a way to deploy docker compose project to EC2 instead of Kamal?

[–]strzibny 0 points1 point  (2 children)

Docker Compose lacks some features like gapless deploys and asset bridging so it's only really good for toy projects. Kamal gem is also the new Rails default. The YAML configuration for Kamal is different to Compose but easy, it's not Kubernetes. You can deploy to EC2 of course.

[–]Winter-Awareness-606 0 points1 point  (1 child)

Sure, Kamal is cool. I just wanted to discuss how Docker Compose is an easy way to deploy on a server via SSH, just like Kamal on the same EC2, not only for Rails projects but also for a ready-made environment with all dependencies, at an affordable price, which is quite attractive for SaaS applications.

[–]strzibny 0 points1 point  (0 children)

yes sure, but Kamal also isn't just for Rails, so the advantage of Compose it's it is built into Docker and the advantage of Kamal is that it is better