Sinatrails is sinatra bootstrap project that suit to my needs to create web application with Rails-like directory structure, Active Record as ORM, and jQuery. Support all ActiveRecord rake tasks except db:copy_migrations and db:fixtures
-
git clone git://github.com/kuntoaji/sinatrails.git
-
bundle install
-
edit config/database.yml based on your database configuration
-
run rake db:create to create database
-
run rake db:migrate to run migration
-
run rake populate_dummy to create dummy users.
-
run ./scripts/test -u to run all unit test or ./scripts/test -u user to run test/unit/user_test.rb.
-
run ./scripts/test -i to run all integration or ./scripts/test -i user to run test/integration/users_controller_test.rb.
-
run ./scripts/test -u -i to run all unit test and all integration test
-
./scripts/server -s thin to execute the thin server or ./scripts/console to the console.
- Author
-
Kunto Aji Kristianto <kunto.aji.kr@gmail.com>
Copyright © 2010 Kunto Aji Kristianto, Sinatrails is released under the MIT license.