Shore is a Ruby on Rails template with modern stack to start your new project.
- Ruby: Ruby 3.4.1
- Rails: Rails 8
- PostgreSQL: PostgresSQL 17
- Tailwind CSS: Uses Tailwind CSS v4 for styling.
- Vite Ruby: Uses Vite Ruby for asset management. It is based on Vite.js. It replaces webpacker, jsbundling-rails, cssbundling-rails, importmaps and sprockets/propshaft.
- Node/Yarn: Uses Node and Yarn.
- Solid Queue: Uses Solid Queue for background processing.
- Minitest/FactoryBot: Uses Rails' default testing library, minitest along with Factorybot.
- Rubocop: Auto-formats Ruby code with rubocop.
- Prettier: Auto-formats JavaScript and CSS code with prettier.
- Github Actions: Uses Github Actions for continuous integration and deployment.
- Deployment: Supports deployment on Heroku and Render
You will need the following to run the application.
Refer here to install these dependencies
-
Shore is a preconfigured base Ruby on Rails application. You can clone this repository and add it to your repo.
git clone [email protected]:yatish27/shore.git your_new_project_name cd your_new_project_name
-
The application's default name is Shore. You can rename it to your desired new name. The name should be in camelcase.
./bin/rename_project YourNewProjectName
-
Copy the
env.sample
to.env
- The default username and password for database is set to
postgres
andpassword
. You can override them in.env
file.
- The default username and password for database is set to
-
Run
bin/setup
to set up the application. It prepares the database and installs the required ruby gems and javascript packages. The script is idempotent, so you can run it multiple times../bin/setup
Start your application
./bin/dev
This runs overmind or foreman using the Procfile.dev. It starts the rails server, solid queue background job process and vite server.
Visit http://localhost:3000
to see the home page 🚀.
- Heroku
- Render
Running all tests
./bin/rails test:all
Running a single test
./bin/rails test test/jobs/hello_world_job_test.rb
Shore is released under the MIT License.
PRs are welcome