This project is a Rails with tailwind css and esbuild to compile js
To run this project you need to have:
- asdf
- Ruby 3.4.7
- Node 24.10.0
- Yarn 4.10.3
- PostgreSQL
- Redis
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.0Your local env will be loaded automatically using the versions in the .tool-versions file
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.
- Install the dependencies above
$ git clone git@github.com:project_name.git- Clone the project$ cd project_name- Go into the project folder$ bin/setup- To install the gems, copy config files, create the database
If everything goes OK, you can now run the project!
You can:
$ bin/assetsTo compile only the js and css$ rails serverin another terminal to run rails server- Open http://localhost:3000
$ bundle exec rspecto run all the specs.$ bundle exec rspec --tag ~@jsto run unit tests.$ bundle exec rspec --tag @jsto run view tests.$ NO_HEADLESS_BROWSER=on bundle exec rspecto run specs viewing the browser$ COVERAGE=on bundle exec rspecto generate the coverage report then open the filecoverage/index.htmlon your browser.
To be defined
To be defined