Skip to content

Rails fullstack template with tailwind css and esbuild

Notifications You must be signed in to change notification settings

ffscalco/rails-fullstack-template

Repository files navigation

Rails fullstack template

This project is a Rails with tailwind css and esbuild to compile js

CI Workflow

Dependencies

To run this project you need to have:

You can use asdf to install ruby, node, and yarn versions. Once you have it installed on your local, you can do the following:

asdf plugin add ruby
asdf plugin add nodejs

asdf install ruby 3.4.7
asdf install nodejs 24.10.0

Your local env will be loaded automatically using the versions in the .tool-versions file

Setup the project

As this is a template, please search for project_name and ProjectName and replace for the name of your project before following the steps below.

  1. Install the dependencies above
  2. $ git clone git@github.com:project_name.git - Clone the project
  3. $ cd project_name - Go into the project folder
  4. $ bin/setup - To install the gems, copy config files, create the database

If everything goes OK, you can now run the project!

Running the project

You can:

  • $ bin/assets To compile only the js and css
  • $ rails server in another terminal to run rails server
  • Open http://localhost:3000

Running specs and checking coverage

  • $ bundle exec rspec to run all the specs.
  • $ bundle exec rspec --tag ~@js to run unit tests.
  • $ bundle exec rspec --tag @js to run view tests.
  • $ NO_HEADLESS_BROWSER=on bundle exec rspec to run specs viewing the browser
  • $ COVERAGE=on bundle exec rspec to generate the coverage report then open the file coverage/index.html on your browser.

Infrastructure

To be defined

Deployments

To be defined

About

Rails fullstack template with tailwind css and esbuild

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published