TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rails 4 startup template

88 pointsby dennybritzalmost 12 years ago

14 comments

ericbalmost 12 years ago
Rather than Haml, at this point, I&#x27;d use Slim. Slim is cleaner (I&#x27;d say nicer) and faster than haml.<p><a href="http://slim-lang.com/" rel="nofollow">http:&#x2F;&#x2F;slim-lang.com&#x2F;</a>
评论 #6194793 未加载
jphalmost 12 years ago
Great! Also see Thoughtbot Suspenders, <a href="https://github.com/thoughtbot/suspenders" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thoughtbot&#x2F;suspenders</a><p>It also uses Bourbon, HAML, RSpec, etc. as well as many more gems. Overall I like and recommend what Thoughtbot creates.
评论 #6193939 未加载
DanielKehoealmost 12 years ago
I&#x27;ve added this to the list of application templates I track at <a href="http://railsapps.github.io/rails-application-templates.html" rel="nofollow">http:&#x2F;&#x2F;railsapps.github.io&#x2F;rails-application-templates.html</a>.<p>There&#x27;s also a list of starter apps at <a href="http://railsapps.github.io/rails-examples-tutorials.html" rel="nofollow">http:&#x2F;&#x2F;railsapps.github.io&#x2F;rails-examples-tutorials.html</a>.<p>Most starter app projects end up as abandonware as Rails changes so it&#x27;s good to see a new app template offered for Rails 4.0. Starter apps always produce a great discussion about must-have gems.
rschmittyalmost 12 years ago
For development I have become cracked out on these for all of my apps<p><pre><code> group :development do gem &#x27;better_errors&#x27; #literally what it says gem &#x27;binding_of_caller&#x27; #adds REPL to better_errors gem &#x27;quiet_assets&#x27; #prevent asset pipeline log doesnt go to console gem &#x27;guard-livereload&#x27; #adds live reload gem &#x27;rack-livereload&#x27; gem &#x27;meta_request&#x27; #chrome rails panel extension end</code></pre>
评论 #6194511 未加载
nileshtrivedialmost 12 years ago
I have a starter app based on Ruby 2.0, Rails 4.0, PostgreSQL, Bootstrap and OmniAuth. Deployable on Heroku.<p>Here is what it looks like running live: <a href="http://frozen-savannah-6000.herokuapp.com/" rel="nofollow">http:&#x2F;&#x2F;frozen-savannah-6000.herokuapp.com&#x2F;</a>
评论 #6194278 未加载
nahnamealmost 12 years ago
&gt; Remove the require_tree directives from the sass and JS files. It&#x27;s better design to import or require things manually.<p>I&#x27;m sorry, what?
评论 #6194080 未加载
评论 #6194075 未加载
vysakh0almost 12 years ago
Nice template, looks like an opinionated one . I see you have used &quot;.env&quot; file. I read somewhere when opensourcing apps its better to have all the env variables in .env, instead of using gem like <a href="https://github.com/laserlemon/figaro" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;laserlemon&#x2F;figaro</a>.<p>Also there is rails_composer <a href="https://github.com/RailsApps/rails-composer/" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;RailsApps&#x2F;rails-composer&#x2F;</a> with many options to select css framework, servers, testing tools.
fphilipealmost 12 years ago
I just love GitHub. Followed the link, noticed that certain links were highlighted as links but not working. Went to the README, edited the broken links, sent a pull request [1], and now it works as expected. Everything done without having to leave &quot;browsing mode&quot;, i.e. no cloning, no terminal, no editor.<p>[1] <a href="https://github.com/dennybritz/rails_startup_template/pull/3" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dennybritz&#x2F;rails_startup_template&#x2F;pull&#x2F;3</a>
BrainScrapsalmost 12 years ago
So, I did something similar, and I found that one of my least favorite things was going into the browser to create and link the github repo. Using the octokit gem, I automated that part. Feel free to swipe some code from my gist:<p><a href="https://gist.github.com/BrainScraps/5952463" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;BrainScraps&#x2F;5952463</a><p>Rock on.
评论 #6193991 未加载
random42almost 12 years ago
Is something similar available for django projects?
评论 #6194198 未加载
shadelessalmost 12 years ago
No guard or similar? Do you run tests and reload pages manually or use something else?
评论 #6194104 未加载
dylandropalmost 12 years ago
Why not make a switch gems, in case someone doesn&#x27;t want them? In other words, something like:<p>ENV[&#x27;dont_include&#x27;]=&#x27;bourbon,analytics-ruby&#x27; rails new [app-name] -m template.rb
sergiotapiaalmost 12 years ago
Why Haml instead of Slim?
评论 #6194509 未加载
评论 #6194072 未加载
thinkbohemianalmost 12 years ago
Allow SECURE_TOKEN to be set via environment variable and it to be rotate-able.