Start up Ruby on Rails application with this template!
Usage:
bin/rails app:template LOCATION=../rails-template/templates/rspec.rb
Start up Ruby on Rails application with this template!
License: MIT License
Boilerplate for SemaphoreCI.
Describe the solution you'd like (optional)
Set up running linting, tests, security analysis, dependency vulnerability analysis etc.
It would be nice to have some stuff on and off depending on testing framework.
When installing the rubocop template, at the end it runs the rubocop -A
. Is it safe if we install the template not in a new project?
I want rubocop create a .rubocop_todo.yml
file instead. Script can calculate count of files in project and run rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit {count_of_files_in_project}
. Article
Set up Docker for development environment.
Describe the solution you'd like (optional)
Create Dockerfile and docker-compose.yml and a generator to copy them over and update database config to connect to host 0.0.0.0 instead of localhost.
Any other ideas are encouraged in the comments.
Boilerplate for database cleaner.
Add a support file for database cleaner config.
https://github.com/DatabaseCleaner/database_cleaner#why.
I'm not sure if it is required in Rails+RSpec since it has transactional fixtures configuration option.
In README I'd like to see:
Generate installation of action_policy for graphql
Boilerplate for capybara.
Add a support file for capybara config.
Set up file uploads.
Set up file uploads to AWS S3.
Describe the bug
A clear and concise description of what the bug is.
A bug is not only an error during generation.
(optional)
Steps to reproduce the behavior:
rails new blog --minimal
Github Actions
template: bin/rails app:template LOCATION=https://raw.githubusercontent.com/DmitryBarskov/rails-template/main/templates/github_actions.rb(optional)
A clear and concise description of what you expected to happen.
Additional context (optional)
Add any other context about the problem here.
What do you want to make the other way? (optional)
Ex. I want rubocop to be set up the other way: 1. add line length limit = 80...
Set up lograge gem to reduce shutter in Rails logs.
https://github.com/roidrage/lograge
¯\(ツ)/¯
Set up Sidekiq.
Implement the best practices in Sidekiq.
Work this out too. What is good to come with Sidekiq? Maybe unique jobs, cron, recurring events etc.
Set up searchkick for the app.
Line 53 is evaluated during template application.
rails-template/templates/rspec.rb
Line 53 in 568d57e
To Reproduce (optional)
Steps to reproduce the behavior:
rails new blog --minimal
rspec
templatespec/rails_helper.rb
fileIt has hardcoded path for fixtures on local machine where the template was applied.
Expected behavior (optional)
It should be config.fixture_path = "#{::Rails.root}/spec/fixtures"
in MY APP
Create users from seeds.
We already have user model definition. Now it would be useful to generate some seeds for it.
Add to Gemfile: gem 'slim'
It may also ask if we need to use gem for template generators. And add gem 'slim-rails'
.
Success!
Boilerplate for rails health check.
You can install this gem https://github.com/linqueta/rails-healthcheck or this gem https://github.com/ianheggie/health_check
The other option is just to drop
get "/health-check", to: proc { [200, {}, [""]] }
to config/routes.rb
What piece of functionality do you want to generate?
I want to add base graphql features
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.