All Projects → rootstrap → rails_hotwire_base

rootstrap / rails_hotwire_base

Licence: other
Rails + Hotwire base app

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to rails hotwire base

stimulus reflex
Build reactive applications with the Rails tooling you already know and love.
Stars: ✭ 2,001 (+3605.56%)
Mutual labels:  ruby-on-rails, hotwire
webrtc-hotwire-rails
A video chat app demonstration using Hotwire and Ruby on Rails
Stars: ✭ 38 (-29.63%)
Mutual labels:  ruby-on-rails, hotwire
from-fat-controllers-to-use-cases
Rails (API) app that shows different kinds of architecture (one per commit), and in the last one, how to use the Micro::Case gem to handle the application business logic.
Stars: ✭ 74 (+37.04%)
Mutual labels:  ruby-on-rails
aliceandbob
🔐 A free, light and easy to use client-side tool to generate PGP key pairs, encrypt and decrypt messages.
Stars: ✭ 24 (-55.56%)
Mutual labels:  ruby-on-rails
ffxiv-triple-triad
Another Triple Triad tracker for Final Fantasy XIV
Stars: ✭ 17 (-68.52%)
Mutual labels:  ruby-on-rails
hotwire-django-realworld
RealWorld Django app built with Turbo!
Stars: ✭ 29 (-46.3%)
Mutual labels:  hotwire
doodba-copier-template
A Copier template for Doodba projects
Stars: ✭ 36 (-33.33%)
Mutual labels:  template-project
GenericAdapter
⛳️ Easy to use android databinding ready recyclerview adapter
Stars: ✭ 26 (-51.85%)
Mutual labels:  base
matestack-docs
Documentation of matestack-ui-core built with matestack itself, consuming Github API for content
Stars: ✭ 14 (-74.07%)
Mutual labels:  ruby-on-rails
active-storage-base64
Base64 support for ActiveStorage
Stars: ✭ 121 (+124.07%)
Mutual labels:  ruby-on-rails
pytorch-gpu-data-science-project
Template repository for a Python 3-based (data) science project with GPU acceleration using the PyTorch ecosystem.
Stars: ✭ 16 (-70.37%)
Mutual labels:  template-project
nexmo-oas-renderer
Render your API references, Nexmo-style!
Stars: ✭ 40 (-25.93%)
Mutual labels:  ruby-on-rails
rails cursor pagination
Add cursor pagination to your ActiveRecord backed application
Stars: ✭ 21 (-61.11%)
Mutual labels:  ruby-on-rails
graphql-rails logger
Display GraphQL queries in a more readable format
Stars: ✭ 102 (+88.89%)
Mutual labels:  ruby-on-rails
IndieNoMo
A full-stack web-app inspired by crowdfunding platform IndieGoGo.
Stars: ✭ 36 (-33.33%)
Mutual labels:  ruby-on-rails
filtered
Filters ActiveRecord queries in a nice way
Stars: ✭ 28 (-48.15%)
Mutual labels:  ruby-on-rails
doorkeeper-sequel
Doorkeeper Sequel ORM
Stars: ✭ 12 (-77.78%)
Mutual labels:  ruby-on-rails
SpeedUpAmerica
Crowd-sourced internet speed tests using M-Lab data and user tests on a website, with charts, maps, and raw data downloads.
Stars: ✭ 24 (-55.56%)
Mutual labels:  ruby-on-rails
nanobox-rails
Quickly set up a Ruby on Rails app on Nanobox, the ideal platform for developers. With Nanobox, Rails app developers can set up instant, isolated development environments that can be shared among team members. Rails apps created using Nanobox can be automatically deployed to AWS, Azure, Google Cloud, and other cloud hosts without the need for de…
Stars: ✭ 19 (-64.81%)
Mutual labels:  ruby-on-rails
halfstaff
🇺🇸 Is the US flag at half-staff?
Stars: ✭ 22 (-59.26%)
Mutual labels:  ruby-on-rails

Rails + Hotwire Template

CI Code Climate Test Coverage

Rails + Hotwire Base is a boilerplate project for full-stack Rails apps with a modern SPA-like experience. It follows the community best practices in terms of standards, security and maintainability, integrating a variety of testing and code quality tools. It's based on Rails 6 and Ruby 3.0.

Finally, it contains a plug and play Administration console (thanks to ActiveAdmin).

Features

This template comes with:

  • Schema
    • Users table
    • Admin users table
  • Endpoints
    • Sign up with user credentials
    • Sign in with user credentials
    • Sign out
    • Reset password
    • Show and update user profile
  • Administration panel for users
  • Rspec tests
  • Code quality tools
  • Docker support

How to use

  1. Clone this repo
  2. Install PostgreSQL in case you don't have it
  3. Run bootstrap.sh with the name of your your project like ./bootstrap.sh my_awesome_project
  4. rspec and make sure all tests pass
  5. rails s
  6. You can now try your app!

How to use with docker

  1. Have docker and docker-compose installed (You can check this by doing docker -v and docker-compose -v)
  2. Modify the following lines in the database.yml file:
default: &default
  adapter: postgresql
  encoding: unicode
  pool: 5
  username: postgres
  password: postgres
  host: db
  port: 5432
  1. Generate a secret key for the app by running docker-compose run --rm --entrypoint="" web rake secret, copy it and add it in your environment variables.
  2. Run docker-compose run --rm --entrypoint="" web rails db:create db:migrate.
    1. (Optional) Seed the database with an AdminUser for use with ActiveAdmin by running docker-compose run --rm --entrypoint="" web rails db:seed. The credentials for this user are: email: [email protected] ; password: password.
  3. (Optional) If you want to deny access to the database from outside of the docker-compose network, remove the ports key in the docker-compose.yml from the db service.
  4. (Optional) Run the tests to make sure everything is working with: docker-compose run --rm --entrypoint="" web rspec ..
  5. Run the application with docker-compose up.
  6. You can now try your app!

Gems

Optional configuration

  • Set your mail sender in config/initializers/devise.rb
  • Config your timezone accordingly in application.rb.

Hotwire with Redis

Turbo Streams uses Action Cable to deliver asynchronous updates to subscribers. This feature allows the user to receive live updates through websockets.

Action Cable relies on redis as subscription adapter for production environment.

With just a little configuration you can make it work.

# config/cable.yml

production:
  adapter: redis
  url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>

Code quality

With rails code_analysis you can run the code analysis tool, you can omit rules with:

  • Rubocop Edit .rubocop.yml
  • Reek Edit .reek.yml
  • Rails Best Practices Edit config/rails_best_practices.yml
  • Brakeman Run brakeman -I to generate config/brakeman.ignore
  • Bullet You can add exceptions to a bullet initializer or in the controller

Configuring Code Climate

  1. After adding the project to CC, go to Repo Settings
  2. On the Test Coverage tab, copy the Test Reporter ID
  3. Set the current value of CC_TEST_REPORTER_ID in the CI project env variables

Code Owners

You can use CODEOWNERS file to define individuals or teams that are responsible for code in the repository.

Code owners are automatically requested for review when someone opens a pull request that modifies code that they own.

Credits

Rails + Hotwire Base is maintained by Rootstrap with the help of our contributors.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].