datarockets / rails_apps_composer

A gem with recipes to create Rails application templates for Rails starter apps.
http://railsapps.github.io/rails_apps_composer/
0 stars 0 forks source link

API // Cleanup Gemfile #21

Open AleksSenkou opened 7 years ago

AleksSenkou commented 7 years ago

Main Idea

Changes

Example

Rails API Gemfile

P.S. Ping me if you are not agree, or have better idea.
MProG commented 7 years ago

How often we do write admin panel for api app on rails? I think we should not remove rails-coffee, sass-rails, jquery-rails and others from gemfile.

AleksSenkou commented 7 years ago

@MProG we don't need it at all. it's front part of work, and we use react/redux etc. front tools for that but I'm not sure // @roman-dubrovsky @Proghat

MProG commented 7 years ago

@AleksSenkou React for admin panel??? This is not rationally. We can write simple admin panel on rails very fast and very cheap for customers.

AleksSenkou commented 7 years ago

@MProG looks reasonable to use react admin panel instead of rails check https://github.com/marmelab/react-admin please

MProG commented 7 years ago

@AleksSenkou I think database_cleaner is useful for testing. Why gem 'pg', '~> 0.18', why not 0.17 or other version. I think base gem 'pg' is enough. And same question about capistrano gem

MProG commented 7 years ago

@AleksSenkou About react admin https://pp.vk.me/c618128/v618128952/1d0eb/wQ3EX2ci2Wk.jpg

AleksSenkou commented 7 years ago

@MProG can you please provide useful example of database_cleaner with code. Maybe I'm loosing something(we don't use it for Vital api)

MProG commented 7 years ago

@AleksSenkou In diffrent tests we can write some information on db. And this situations can results of work other tests is incorrect. If you test work with db you should call DatabaseCleane.clean in my opinion.

AleksSenkou commented 7 years ago

@MProG

Why gem 'pg', '~> 0.18', why not 0.17 or other version. I think base gem 'pg' is enough and And same question about capistrano gem

we may have conflicts after bundle update without specifying gem versions

AleksSenkou commented 7 years ago

@MProG

In diffrent tests we can write some information on db we have many tests with real db entries and we don't use database_cleaner

check vital repo for examples

MProG commented 7 years ago

@AleksSenkou I don't use byebug before but i wrote description and i think this is interesting gem.