Speed your Rails app creation with templates

Simon Courtois
Simon CourtoisCTO Founder at PDFMonkey
Speed your app
creation with templates
need some rails power? www.tinci.fr@happynoff
Simon Courtois
www.tinci.fr
happynoff
simonc
need some rails power? www.tinci.fr@happynoff
Every new app!
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
A simple Ruby file
need some rails power? www.tinci.fr@happynoff
rails new -m template.rb
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
gem 'bootstrap-sass','~> 3.3'
need some rails power? www.tinci.fr@happynoff
gem_group :development do
gem 'better_errors'
end
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
initializer 'hello.rb',
'Hello = 42'
need some rails power? www.tinci.fr@happynoff
initializer 'mustdown.rb', <<-CODE
Mustdown.configure do |config|
config.renderer_options = {
with_toc_data: true
}
end
CODE
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
insert_into_file
'config/application.rb',
"config.i18n.default_locale = :frn",
after: ":den"
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
after_bundle do
generate
'simple_form:install',
'--bootstrap'
end
need some rails power? www.tinci.fr@happynoff
And it’s just Ruby!
need some rails power? www.tinci.fr@happynoff
doing_admin = ask('Need admin?')
if doing_admin
gem 'rails_admin', '~> 0.6.7'
after_bundle do
generator ''
end
end
need some rails power? www.tinci.fr@happynoff
Run commands
need some rails power? www.tinci.fr@happynoff
run "wget ...
-O config/locales/devise.fr.yml"
need some rails power? www.tinci.fr@happynoff
Use git
need some rails power? www.tinci.fr@happynoff
after_bundle
do
git :init
git add: '.'
end
Learn more
guides.rubyonrails.org/
rails_application_templates.html
need some rails power? www.tinci.fr@happynoff
Questions?
need some rails power? www.tinci.fr@happynoff
Thanks!
1 of 25

Recommended

SSRS Conditional Formatting by
SSRS Conditional FormattingSSRS Conditional Formatting
SSRS Conditional FormattingRam Kedem
981 views8 slides
SSRS Calculated Fields by
SSRS Calculated FieldsSSRS Calculated Fields
SSRS Calculated FieldsRam Kedem
975 views11 slides
HP ProLiant Gen9 Server Features by
HP ProLiant Gen9 Server FeaturesHP ProLiant Gen9 Server Features
HP ProLiant Gen9 Server FeaturesSameer Naik ✆ 09730046246 (Pune)
1K views18 slides
SSRS Basic Parameters by
SSRS Basic ParametersSSRS Basic Parameters
SSRS Basic ParametersRam Kedem
1.1K views19 slides
SSRS Groups by
SSRS GroupsSSRS Groups
SSRS GroupsRam Kedem
1K views21 slides
"... as a Service - leveraging distribution partnerships by deeply integratin... by
"... as a Service - leveraging distribution partnerships by deeply integratin..."... as a Service - leveraging distribution partnerships by deeply integratin...
"... as a Service - leveraging distribution partnerships by deeply integratin...ProductTank TLV
257 views55 slides

More Related Content

Similar to Speed your Rails app creation with templates

Testing Adhearsion Applications by
Testing Adhearsion ApplicationsTesting Adhearsion Applications
Testing Adhearsion ApplicationsLuca Pradovera
738 views80 slides
Building CI/CD Pipelines for MongoDB Realm Apps by
Building CI/CD Pipelines for MongoDB Realm AppsBuilding CI/CD Pipelines for MongoDB Realm Apps
Building CI/CD Pipelines for MongoDB Realm AppsLauren Hayward Schaefer
359 views56 slides
Your fist RubyMotion Application by
Your fist RubyMotion ApplicationYour fist RubyMotion Application
Your fist RubyMotion Applicationtoamitkumar
1K views90 slides
Finding Frank - Spotify API.pdf by
Finding Frank - Spotify API.pdfFinding Frank - Spotify API.pdf
Finding Frank - Spotify API.pdfaspleenic
32 views33 slides
Offline of web applications by
Offline of web applicationsOffline of web applications
Offline of web applicationsFDConf
3.3K views85 slides
Offline for web - Frontend Dev Conf Minsk 2014 by
Offline for web - Frontend Dev Conf Minsk 2014Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014Jan Jongboom
2.3K views85 slides

Similar to Speed your Rails app creation with templates(20)

Testing Adhearsion Applications by Luca Pradovera
Testing Adhearsion ApplicationsTesting Adhearsion Applications
Testing Adhearsion Applications
Luca Pradovera738 views
Your fist RubyMotion Application by toamitkumar
Your fist RubyMotion ApplicationYour fist RubyMotion Application
Your fist RubyMotion Application
toamitkumar1K views
Finding Frank - Spotify API.pdf by aspleenic
Finding Frank - Spotify API.pdfFinding Frank - Spotify API.pdf
Finding Frank - Spotify API.pdf
aspleenic32 views
Offline of web applications by FDConf
Offline of web applicationsOffline of web applications
Offline of web applications
FDConf3.3K views
Offline for web - Frontend Dev Conf Minsk 2014 by Jan Jongboom
Offline for web - Frontend Dev Conf Minsk 2014Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014
Jan Jongboom2.3K views
Twiggy - let's get our widget on! by Elliott Kember
Twiggy - let's get our widget on!Twiggy - let's get our widget on!
Twiggy - let's get our widget on!
Elliott Kember485 views
Employing Custom Fonts by Paul Irish
Employing Custom FontsEmploying Custom Fonts
Employing Custom Fonts
Paul Irish5.1K views
Sinatra Rack And Middleware by Ben Schwarz
Sinatra Rack And MiddlewareSinatra Rack And Middleware
Sinatra Rack And Middleware
Ben Schwarz16.9K views
Pourquoi Ruby on Rails ça déchire ? by Simon Courtois
Pourquoi Ruby on Rails ça déchire ?Pourquoi Ruby on Rails ça déchire ?
Pourquoi Ruby on Rails ça déchire ?
Simon Courtois4.9K views
Jay Phillips's Presentation at eComm 2009 by eCommConf
Jay Phillips's Presentation at eComm 2009Jay Phillips's Presentation at eComm 2009
Jay Phillips's Presentation at eComm 2009
eCommConf525 views
Os Bowkett by oscon2007
Os BowkettOs Bowkett
Os Bowkett
oscon2007887 views
Sinatra + Heroku by lvrubygroup
Sinatra + HerokuSinatra + Heroku
Sinatra + Heroku
lvrubygroup658 views
I35s by ujihisa
I35sI35s
I35s
ujihisa1.2K views
Foreman - Process manager for applications with multiple components by Stoyan Zhekov
Foreman - Process manager for applications with multiple componentsForeman - Process manager for applications with multiple components
Foreman - Process manager for applications with multiple components
Stoyan Zhekov2.8K views

More from Simon Courtois

Conseils pour un lancement Product Hunt réussi by
Conseils pour un lancement Product Hunt réussiConseils pour un lancement Product Hunt réussi
Conseils pour un lancement Product Hunt réussiSimon Courtois
72 views28 slides
Dependency sorting in Ruby with TSort by
Dependency sorting in Ruby with TSortDependency sorting in Ruby with TSort
Dependency sorting in Ruby with TSortSimon Courtois
942 views16 slides
How Unidecoder Transliterates UTF-8 to ASCII by
How Unidecoder Transliterates UTF-8 to ASCIIHow Unidecoder Transliterates UTF-8 to ASCII
How Unidecoder Transliterates UTF-8 to ASCIISimon Courtois
782 views34 slides
Get Slim! by
Get Slim!Get Slim!
Get Slim!Simon Courtois
2.2K views23 slides
Multi tenant/lang application with Ruby on Rails by
Multi tenant/lang application with Ruby on RailsMulti tenant/lang application with Ruby on Rails
Multi tenant/lang application with Ruby on RailsSimon Courtois
1.7K views14 slides
Fake your files - MemFs by
Fake your files - MemFsFake your files - MemFs
Fake your files - MemFsSimon Courtois
1K views24 slides

More from Simon Courtois(13)

Recently uploaded

20231123_Camunda Meetup Vienna.pdf by
20231123_Camunda Meetup Vienna.pdf20231123_Camunda Meetup Vienna.pdf
20231123_Camunda Meetup Vienna.pdfPhactum Softwareentwicklung GmbH
49 views73 slides
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...ShapeBlue
93 views13 slides
Digital Personal Data Protection (DPDP) Practical Approach For CISOs by
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOsPriyanka Aash
103 views59 slides
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates by
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesShapeBlue
178 views15 slides
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...ShapeBlue
120 views62 slides
Uni Systems for Power Platform.pptx by
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptxUni Systems S.M.S.A.
60 views21 slides

Recently uploaded(20)

Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue93 views
Digital Personal Data Protection (DPDP) Practical Approach For CISOs by Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash103 views
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates by ShapeBlue
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates
ShapeBlue178 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue120 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker50 views
The Power of Heat Decarbonisation Plans in the Built Environment by IES VE
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE67 views
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ... by ShapeBlue
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
ShapeBlue48 views
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... by ShapeBlue
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
ShapeBlue59 views
DRBD Deep Dive - Philipp Reisner - LINBIT by ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue110 views
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by ShapeBlue
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue56 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson142 views
Business Analyst Series 2023 - Week 4 Session 7 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10110 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue63 views
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online by ShapeBlue
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
ShapeBlue154 views
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue97 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT by ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue138 views
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue147 views

Speed your Rails app creation with templates

  • 1. Speed your app creation with templates
  • 2. need some rails power? www.tinci.fr@happynoff Simon Courtois www.tinci.fr happynoff simonc
  • 3. need some rails power? www.tinci.fr@happynoff Every new app!
  • 4. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 5. need some rails power? www.tinci.fr@happynoff A simple Ruby file
  • 6. need some rails power? www.tinci.fr@happynoff rails new -m template.rb
  • 7. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 8. need some rails power? www.tinci.fr@happynoff gem 'bootstrap-sass','~> 3.3'
  • 9. need some rails power? www.tinci.fr@happynoff gem_group :development do gem 'better_errors' end
  • 10. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 11. need some rails power? www.tinci.fr@happynoff initializer 'hello.rb', 'Hello = 42'
  • 12. need some rails power? www.tinci.fr@happynoff initializer 'mustdown.rb', <<-CODE Mustdown.configure do |config| config.renderer_options = { with_toc_data: true } end CODE
  • 13. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 14. need some rails power? www.tinci.fr@happynoff insert_into_file 'config/application.rb', "config.i18n.default_locale = :frn", after: ":den"
  • 15. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 16. need some rails power? www.tinci.fr@happynoff after_bundle do generate 'simple_form:install', '--bootstrap' end
  • 17. need some rails power? www.tinci.fr@happynoff And it’s just Ruby!
  • 18. need some rails power? www.tinci.fr@happynoff doing_admin = ask('Need admin?') if doing_admin gem 'rails_admin', '~> 0.6.7' after_bundle do generator '' end end
  • 19. need some rails power? www.tinci.fr@happynoff Run commands
  • 20. need some rails power? www.tinci.fr@happynoff run "wget ... -O config/locales/devise.fr.yml"
  • 21. need some rails power? www.tinci.fr@happynoff Use git
  • 22. need some rails power? www.tinci.fr@happynoff after_bundle do git :init git add: '.' end
  • 24. need some rails power? www.tinci.fr@happynoff Questions?
  • 25. need some rails power? www.tinci.fr@happynoff Thanks!