# Basic Setup and Architecture

**URL:** <https://www.ruby-forum.com/t/basic-setup-and-architecture/209634>\
**Category:** Rails\
**Created:** [July 19, 2011, 11:57am UTC](https://www.ruby-forum.com/t/basic-setup-and-architecture/209634 "2011-07-19T11:57:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 19, 2011, 11:57am UTC](https://www.ruby-forum.com/t/basic-setup-and-architecture/209634/1 "2011-07-19T11:57:14Z")

</div>

Just wondering,

What are the basic gems that you guys use and the architecture (code  
base and otherwise) do you guys follow when starting a new Rails  
project?

---

<div class="post-metadata">

**Author:** ![manoj\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5e9695/32.png) [@manoj\_s](https://www.ruby-forum.com/u/manoj_s)\
**Post date:** [July 19, 2011, 12:13pm UTC](https://www.ruby-forum.com/t/basic-setup-and-architecture/209634/2 "2011-07-19T12:13:21Z")

</div>

Try searching for “rails template” on GitHub, and you’ll get a lot of  
answers from smart people on the gems question. Any questions of  
architecture though above and beyond the standard Rails folder structure  
are  
going to be specific to each application though.

On Tue, Jul 19, 2011 at 11:55 AM, Manoj S.

---

<div class="post-metadata">

**Author:** ![manoj\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5e9695/32.png) [@manoj\_s](https://www.ruby-forum.com/u/manoj_s)\
**Post date:** [July 19, 2011, 12:39pm UTC](https://www.ruby-forum.com/t/basic-setup-and-architecture/209634/3 "2011-07-19T12:39:58Z")

</div>

Hi,  
  
 &nbsp;&nbsp;&nbsp; I don't know what do you mean by "and the architecture" but I can' tell you which gem's we add almost by default to all the projects... our basic gemfile look like this:  
  
 gem 'pg', '0.9.0'&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #Our default database  
 gem 'hflr', '1.0.1'&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; #splitting files  
 gem 'will\_paginate', '\>= 3.0.pre'&nbsp; #pagination  
 gem 'delayed\_job', '2.1.4'&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; #backround jobs  
 gem 'jquery-rails'&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #jquery instead of prototype (solved in rails 3.1)   
  
 #security  
 gem 'devise'  
 gem 'devise\_cas\_authenticatable'  
 gem 'cancan', '\>= 1.6.5'  
  
 group :development do  
 &nbsp;&nbsp;&nbsp; gem 'annotate', '\>=2.4.0' &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #team request  
 end  
  
 group :development, :test do  
 &nbsp;&nbsp;&nbsp; gem 'rails\_code\_qa'&nbsp;&nbsp;&nbsp; #testing (includes rcov)  
 end  
  
  
 &nbsp;&nbsp;&nbsp; Considerations for our projects / architecture:  
 &nbsp;&nbsp;&nbsp; - We develop and deploy in all platforms... the most problematic is windows.  
 &nbsp;&nbsp;&nbsp; - We don't have a clear path how to connect different rails projects (working on it)  
  
 &nbsp;&nbsp;&nbsp; And about the steps... If I was to start from zero... it will be:  
 &nbsp;&nbsp;&nbsp; 1. rails new project  
 &nbsp;&nbsp;&nbsp; 2. create/init GIT repository  
 &nbsp;&nbsp;&nbsp; 3. change gemfile to standard  
 &nbsp;&nbsp;&nbsp; 4. copy "config\environments\production.rb" to "config\environments\pre\_production.rb" (ideally should be the same as production.... but we have some different like links to other servers, that also need to be pre-production)  
 &nbsp;&nbsp;&nbsp; 5. correct the "config\database.yml"  
 &nbsp;&nbsp;&nbsp; 6. copy "config\database.yml" to "config\database.yml.example"  
 &nbsp;&nbsp;&nbsp; 7. exclude from git&nbsp; "config\database.yml", "log" folder and "tmp" folder  
 &nbsp;&nbsp;&nbsp; 8. setup the databases  
 &nbsp;&nbsp;&nbsp; 9. bundle install  
 &nbsp;&nbsp;&nbsp; 10. GIT commit and deploy on the integration server  
 &nbsp;&nbsp;   
 &nbsp;&nbsp;&nbsp; I have omitted some steep like setup de device, cancan and cas... but that really depends on each project/organization  
  
 &nbsp;&nbsp;&nbsp; I hope it will help you.  
  
  
 El 19/07/2011 11:55, Manoj S. escribió:

> ```
> Just wondering,
> 
> What are the basic gems that you guys use and the architecture (code  
> base and otherwise) do you guys follow when starting a new Rails  
> project?
> ```

  

```
--
Miquel C. Escarré
+34 699 73 22 46[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

“Computers are good at following instructions, but not at reading your  
mind.” Donald Knuth.

“Los ordenadores son buenos siguiendo instrucciones, pero no leyendo tu  
mente.” Donald Knuth.
```

–   
  
You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
  
To post to this group, send email to  
removed\_email\_address@domain.invalid.  
  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.

For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en.](http://groups.google.com/group/rubyonrails-talk?hl=en.)
