Awesome
What's this?
An empty Rails application hooked up with some basic stuff: inherited_resources, has_scope, delayed_job, simple-navigation, rspec, twitter bootstrap integration, some scaffold generators
Details
Basic
- haml-rails - templates
- less-rails - stylesheets
- coffee-rails - javascripts
- simple-navigation - navigation menus
- delayed_job_active_record - background jobs
- devise - authentication
- cancan - authorization
- state_machine - state machine
- http://github.com/josevalim/inherited_resources - controller restful actions
- has_scope - Maps controller filters to your resource scopes
- kaminari - pagination
- twitter-bootstrap-rails - Twitter bootstrap integration
- bootstrap_kaminari - pagination template for twitter bootstrap
Twitter bootstrap
The application is themed by bootstrap. Simple form generates the forms for bootstrap. Pagination is styled by bootstrap_kaminari. Also there's an app:scaffold generator that make some pretty nice pages :)
RSpec
- factory_girl - fixtures
- ffaker - fake data generation
- mocha - mocking
- spork + guard + guard-spork + guard-rspec + guard-bundler - TDD :)
Howto
- Clone the repo
- setup config/database.yml
- rake db:migrate
- done!
Howto use the app:scaffold
- rails g model model field1:type field2:type
- rake db:migrate
- rails g app:scaffold pluralized_model
- now you can configure the model, controller, view
NOTE: don't forget to setup the cancan ability. By default all users can manage everything
TODO
- more detailed explanation
- write tests for user model, authentication, authorization
- setup integration tests
- enable OAuth
- enable registration
- localize for other languages
- add roles to users for better authorization management
- make this a gem with a generator that does all the setup