Foreman
tailwindcss-rails | Foreman | |
---|---|---|
20 | 15 | |
1,363 | 5,981 | |
1.3% | - | |
8.7 | 5.9 | |
12 days ago | 26 days ago | |
Ruby | Ruby | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tailwindcss-rails
-
Is the default importmap method unrealistic in the most popular real world use cases?
You can't use additional CSS packages (like Flowbite) with the official tailwindcss-rails gem. According to this answered issue, you should either give up importmap and use a bundler, or use a CSS file from CDN - which is not ideal (unnecessary classes won't be purged this way).
-
How to bundle assets in a Rails engine
You first install your asset handlers as you need them for your project. They can be anything from rails/jsbundling-rails and rails/tailwindcss-rails to webpacker or something custom.
-
Setup TailwindCSS, postcss and esbuild on Rails 7
Preconfigured TailwindCSS from TailwindCSS-rails ready to use out of the box, pass --css tailwind as an option.β
-
User notifications with Rails, Noticed, and Hotwire
Thanks to the magic of Rails, the scaffold generator gives us almost everything we need to start creating messages and associating them with users. Because we are using Tailwind via the tailwindcss-rails gem, the scaffold generator also includes some nice looking base styles too.
-
Pagination and infinite scrolling with Rails and the Hotwire stack
Because we are using Tailwind via the tailwindcss-rails gem, the scaffold generator applies some basic Tailwind styling to generated views, so we have nice looking Widget pages right out of the box.
-
Launching Multiple Processes with a Single Command in Rails
Here's a simple way to achieve this, inspired by the tailwindcss-rails gem.
-
How to Install Shoelace with Rails 7, esbuild, and Tailwind JIT
For more documentation on tailwind installation: https://github.com/rails/tailwindcss-rails
-
Upgrading from Rails 6.x Webpacker to Rails 7 Importmaps
gem "rails", "~> 7.0.0" # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] gem "sprockets-rails" # Use postgresql as the database for Active Record gem "pg", "~> 1.1" # Use the Puma web server [https://github.com/puma/puma] gem "puma", "~> 5.0" # Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] gem "importmap-rails" # Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] gem "turbo-rails" # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] gem "stimulus-rails" # Use Tailwind CSS [https://github.com/rails/tailwindcss-rails] gem "tailwindcss-rails" # Build JSON APIs with ease [https://github.com/rails/jbuilder] gem "jbuilder" gem "redis", "~> 4.0"
-
Rails 7 Tailwind Scaffold Question
When you generate an app with rails new --css=tailwind without a JS option, you get the tailwindcss-rails gem which includes the new scaffold generators. When you pass in a JavaScript option as well, you get Tailwind installed via cssbundling-rails, which does not include built-in generators since it offers more than just Tailwind as an option.
- Tailwind-styled scaffold templates when using tailwindcss-rails
Foreman
-
Overmind, a better foreman or bin/dev for your Procfile
I was confused because there is https://github.com/ddollar/foreman and https://github.com/theforeman/foreman
-
Ask HN: CLI tool like Docker-compose but fully local?
Are you looking for something like https://github.com/ddollar/foreman?
-
Spin up your development background processes with ease
Btw, there's a large number of tools that use the Procfile file format, including what appears to be the original one, written in Ruby https://github.com/ddollar/foreman (the readme has links to a partial list of foreman clones)
But I agree that overmind is the best of the bunch
-
Setup TailwindCSS, postcss and esbuild on Rails 7
We ran our app via bin/dev. You can find the div file inside ./bin/dev folder. It is a ruby wrapper over the process manager forman which manages Procfile-based applications. Rails automatically install foreman gem but it doesnβt bundle it because forman recommends NOT to do π«
-
Ruby on Rails tutorial: Getting started with Contentful
Note: Alternatively, you can install Foreman on your computer and execute the ./bin/dev command to simultaneously generate the TailwindCSS classes and also run the Rails server in a single terminal.
-
why doesnt localhost reflect my changes after clearing cache with my Reactjs app
using foreman with the foreman start -f Procfile.dev command to start my app.
-
Simpler Dev Environments with Procfiles
Obviously, we still need to install a runner to handle this procfile. Meet foreman, or one of it's forks. Foreman is a Ruby script, so for that you'll need to have Ruby installed. There are many forks though. Such as shoreman, which is a dependency free shell script, or node-foreman, which is a javascript fork. I go with node-foreman, for the simple reason that I'm a node guy and I like that I can npm install it to the dependencies of my node projects.
-
Using Foreman to start services in development
Comes Foreman to the rescue! Foreman is a gem (for Ruby, but it already ported to many others languages) that will load a Procfile and start/stop the services configured by demand.
-
Managing Javascript the easy way in Rails 7
A bin/dev file - This should be how you run your application in development. It runs (and optionally installs if you don't have it) Foreman, so you can run your server and build Javsacript on the fly
-
Launching Multiple Processes with a Single Command in Rails
So far, whenever I started the Rails app, I launched these supporting processes in multiple terminal windows. This week, I learned a new way to do this using a single command using the Foreman gem, which has saved me a lot of time.
What are some alternatives?
cssbundling-rails - Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js.
God - Ruby process monitor
Pagy - π The Best Pagination Ruby Gem π₯
overmind - Process manager for Procfile-based applications and tmux
sprockets-rails - Sprockets Rails integration
Procodile - π Run processes in the background (and foreground) on Mac & Linux from a Procfile (for production and/or development environments)
hotwire-example-template - A collection of branches that transmit HTML over the wire.
Eye - Process monitoring tool. Inspired from Bluepill and God.
flutter-roadmap - Roadmap for Flutter developers in 2020
Ruby Operators - Webpage to show interesting names of different Ruby operators.
importmap-rails - Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling.
Bluepill - simple process monitoring tool