Giter Club home page Giter Club logo

rails-template's Introduction

rails-template

Start up Ruby on Rails application with this template!

Usage:

bin/rails app:template LOCATION=../rails-template/templates/rspec.rb

rails-template's People

Contributors

arthurzaharov avatar dmitrybarskov avatar rasimkhusaenov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rails-template's Issues

Template for users

Summary

Create users from seeds.

We already have user model definition. Now it would be useful to generate some seeds for it.

capybara

Summary

Boilerplate for capybara.

Add a support file for capybara config.

Readme is missing information

Summary

In README I'd like to see:

  • more descriptive instruction how to install a template
  • how to contribute to the project
  • system requirements
  • supported Rails versions

Template for `slim`

Summary

Add to Gemfile: gem 'slim'
It may also ask if we need to use gem for template generators. And add gem 'slim-rails'.
Success!

Template for Sidekiq

Summary

Set up Sidekiq.

Implement the best practices in Sidekiq.

Extras

Work this out too. What is good to come with Sidekiq? Maybe unique jobs, cron, recurring events etc.

Template for file uploads.

Summary

Set up file uploads.

Set up file uploads to AWS S3.

Extras

  • Add some more clouds (e. g. Azure)
  • Mirroring options
  • Generating links for uploaded assets

Template for Docker

Summary

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.

Extras

Any other ideas are encouraged in the comments.

Template for Semaphore CI

Summary

Boilerplate for SemaphoreCI.

Describe the solution you'd like (optional)
Set up running linting, tests, security analysis, dependency vulnerability analysis etc.

Extras

It would be nice to have some stuff on and off depending on testing framework.

RSpec installation rails_helper is wrong

Bug description

Line 53 is evaluated during template application.

config.fixture_path = "#{::Rails.root}/spec/fixtures"

Which is wrong. It should be added as is.

To Reproduce (optional)
Steps to reproduce the behavior:

  1. generate an empty project with rails new blog --minimal
  2. apply the rspec template
  3. see spec/rails_helper.rb file

It 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

Rubocop template may not be safe

Summary

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?

Suggestion

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

"Github Actions" template is wrong

Summary

Describe the bug
A clear and concise description of what the bug is.
A bug is not only an error during generation.

Steps to reproduce

(optional)
Steps to reproduce the behavior:

  1. generate an empty project with rails new blog --minimal
  2. apply the Github Actions template: bin/rails app:template LOCATION=https://raw.githubusercontent.com/DmitryBarskov/rails-template/main/templates/github_actions.rb

Expected behavior

(optional)
A clear and concise description of what you expected to happen.

Actual behavior

image

Additional context (optional)
Add any other context about the problem here.

Suggestion

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.