If I was going to build a SASS from scratch. These would be the set of tools I would use. Every Rails developer has their favorite set of tools and gems. These happen to be mine.
The Setup includes:
- Testing with RSpec and Factory Girl. You can specify retry counts with the
RETRIESenvironment variable i.e.RETRIES=5 bundle exec rspec specto retry failing specs 5 times. By default failing specs get retried 3 times. - Application Administration with Active Admin.
- Application Monitoring with Rollbar, Skylight and New Relic.
- Continuous Integration and Deployment with Circle CI.
- Continuous Code Checks with Code Climate
- Customer Support with Intercom and Heap
- Design with Twitter Bootstrap
git clone https://github.com/tansengming/rails-base.gitcd rails-baserm -rf .gitrm config/secrets.yml.encgit init && git add . && git commit -m 'initial commit'rails secrets:setuprails secrets:editand use the values fromconfig/secrets.yml.sampledocker-compose up --builddocker-compose run app rake db:createdocker-compose run app rake db:migratedocker-compose run app rake db:seed- A web server should be running at http://localhost:3000, a client for the SMTP server should be running at http://localhost:1080
- Sign up for accounts at Skylight, Segment, Heap, Intercom, sendwithus, Code Climate and Circle CI.
- Update your secrets at
rails secrets:editwith all the tokens from the accounts you just signed up for.
- There are 2 levels of admins. Regular admins get to administer the app. Super Admins administer regular admins. You can access them at
/adminand/super_admins. - You can ping the app at
/up.jsonfor availability monitoring. If all goes well it will respond with{"status":"ok"}.

