All threads / Best framework for putting a "job based" app on Heroku?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Best framework for putting a "job based" app on Heroku?

SonilGomes asked in General

I've been working with Ruby for a few years, but haven't really built anything from scratch. Most of the projects I've interacted with have been Rails. https://solitaire.onl/

I have a need to build a daily job that connects to a public API (uses an API client that is maintained as third-party), gather data, aggregate it, maybe fire off a few emails and write a few DB records. https://9apps.ooo/

There's no web interface/API (on my end), so I'm hesitant to use Rails -- no need for authentication, web, etc.

Is there a framework that's recommended for a project like this, at least one that provides a good structure? Or should I literally just use straight Ruby and structure the code as best I can?

I think probably straight ruby and structure the code as best you can.

Some of our community 'just write ruby' skills have atrophied with so much use of Rails.

use a Gemfile and bundler. bundle exec whatever.

put your starting 'cli' script in ./bin.

Put everything else in ./lib, at paths corresponding to module namespaces. require what you need at top of files that need it. shareit vidmate

That's the basic structure that will make everything play nice, I think

You are correct, Rails does not make sense if it's not a web app. I would write pure Ruby + cron jobs, maybe ActiveRecord for ORM if you are familiar with it and intend to store data in the database between job runs. 9apps app cartoon hd

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.