{"id":13394883,"url":"https://github.com/dao42/rails-template","last_synced_at":"2026-01-17T20:26:47.885Z","repository":{"id":54965214,"uuid":"62069396","full_name":"dao42/rails-template","owner":"dao42","description":"A best \u0026 newest \u0026 fastest rails 6.x template for senior rails developer.","archived":false,"fork":false,"pushed_at":"2022-09-14T13:10:44.000Z","size":125,"stargazers_count":381,"open_issues_count":0,"forks_count":92,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-07-31T17:23:19.024Z","etag":null,"topics":["rails","template"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dao42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-27T16:04:04.000Z","updated_at":"2024-02-03T12:06:43.000Z","dependencies_parsed_at":"2023-01-18T07:30:55.136Z","dependency_job_id":null,"html_url":"https://github.com/dao42/rails-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao42%2Frails-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao42%2Frails-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao42%2Frails-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao42%2Frails-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dao42","download_url":"https://codeload.github.com/dao42/rails-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243478221,"owners_count":20297213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rails","template"],"created_at":"2024-07-30T17:01:35.023Z","updated_at":"2026-01-17T20:26:47.873Z","avatar_url":"https://github.com/dao42.png","language":"Ruby","funding_links":[],"categories":["Ruby","Happy Exploring 🤘","Starters/Boilerplates"],"sub_categories":["Articles"],"readme":"# dao42/rails-template\n\n**dao42/rails-template has supported the newest rails 7.2.x project setup**\n\n~~dao42/rails-template has supported the newest rails 6.1.x project setup~~\n\nMaybe the best \u0026 newest \u0026 fastest rails template for senior rails developer.\n\nIt maybe the best starting for your new rails project.\n\nAn example built with rails-template: https://github.com/dao42/rails-template-7x-example\n\n\n## Core Idea\n\n`dao42/rails-template` apply lots of good components for you to make development damn quick.\n\n1. `dao42/rails-template` keep the newest easily because it's a real `Rails Application Template`.\n2. `dao42/rails-template` love the newest standard components of Rails 7, using `propshaft`\n3. `dao42/rails-template` is out-of-box for your development based on `bootstrap4`.\n4. `dao42/rails-template` is out-of-box for your deployment based on `mina`.\n\n## How to use\n\nInstall dependencies:\n\n* postgresql\n\n    ```bash\n    $ brew install postgresql\n    ```\n\n    Ensure you have already initialized a user with username: `postgres` and password: `postgres`( e.g. using `$ createuser -d postgres` command creating one )\n\n* rails 6\n\n    Using `rbenv`, update `ruby` up to 3.x, and install `rails 6.1.x`\n\n    ```bash\n    $ ruby -v ( output should be 3.x )\n\n    $ gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.com/` (optional, Chinese developer recommend)\n\n    $ gem install rails\n\n    $ rails -v ( output should be rails 7.2.x )\n    ```\n\n* yarn\n\n    Install `npm`, `yarn` for webpacker( see install document: https://yarnpkg.com/en/docs/install)\n\n    ```bash\n    $ yarn --version( output should be 1.6.x or higher )\n\n    $ npm config set registry https://registry.npm.taobao.org (optional, Chinese developer recommend)\n    ```\n\nThen,\n\n1. Add `gems.ruby-china.com` to your bundle mirrors (optional, Chinese developer recommended)\n\n    `$ bundle config mirror.https://rubygems.org https://gems.ruby-china.com`\n\n2. Create your own rails app applying `rails-template`\n\n    // -A: no pipeline, -J: no js( rails-template will create them by self)\n    `$ rails new myapp -A -J -m https://raw.githubusercontent.com/dao42/rails-template/master/composer.rb`\n\n    Important!! replace `myapp` to your real project name, we will generate lots of example files by this name.\n\n3. Done! Trying to start it.\n\n    `$ bin/dev`\n\n## What we do\n\n`rails-template` apply lots of good components for you to make development damn quick.\n\n1. `ActionCable` and `Turbo` features are opened by default.\n\n2. `Bootstrap4` and `font-awesome` are integrated to make your products UI easily, it aslo has some example pages for you to quickly start.\n\n3. `active_storage` and `local` file mode are opened by default.\n\n4. `mina` and its plugins are out-of-box for your deployment.\n\n5. `slim`, `simple_form`, `kaminari`, `high_voltage` are installed.\n\n6. `adminlte 4` is ready for your administrator dashboard.\n\n7. `rspec`, `factory_bot_rails`, `database_cleaner` are ready for your testing automation.\n\n8. Zero-down phase-restart mode is out-of-box with `mina-ng-puma`.\n\n9. `monit`, `nginx example`, `https ssl example`, `logrotate`, `backup example` is ready for you.\n\nOther gems integrated in rails-template are worth learning seriously.\n\n## Integrated mainly technology stack and gems\n\n* [Ruby on Rails 7.0](https://github.com/rails)\n* [bootstrap 4](https://github.com/twbs)\n* [font-awesome 5](https://github.com/FortAwesome)\n* [figaro](https://github.com/laserlemon/figaro)\n* [postgres](https://www.postgresql.org/)\n* [slim](https://github.com/slim-template/slim)\n* [simple_form](https://github.com/heartcombo/simple_form)\n* [high_voltage](https://github.com/thoughtbot/high_voltage)\n* [active_storage](https://github.com/rails/rails/tree/master/activestorage)\n* [sidekiq](https://github.com/mperham/sidekiq)\n* [kaminari](https://github.com/kaminari/kaminari)\n* [mina](https://github.com/mina-deploy/mina)\n* [puma](https://github.com/puma/puma)\n* [rspec](https://github.com/rspec)\n* [adminlte 4](https://github.com/ColorlibHQ/AdminLTE)\n\n## Deployment document\n\n* [How to deploy to ubuntu 16.10 with rails-template step by step(zh-CN)](https://github.com/dao42/rails-template/wiki/how-to-deploy-rails-to-ubuntu1404-with-rails-template)\n\n## Projects that using `dao42/rails-template`\n\nWelcome to pull request here to update this if you choose `dao42/rails-template` for your new rails app.\n\n* [danmai weapp SAAS platform](https://www.danmai.com.cn)\n* [dao42 official website](https://www.dao42.com)\n* [showmebug](https://www.showmebug.com)\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdao42%2Frails-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdao42%2Frails-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdao42%2Frails-template/lists"}