I very quickly started to like the way Cuba does routing, so I want to run some projects with it. In order to avoid reinventing the wheel constantly I put the jumble of things I chose to fit my needs in one place.
- clone it check out [http://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export] to know how
- change it
- create your github project for it
- commit it
- rvm (or the like)
- rvm install 2.2.3
- rvm use 2.2.3
- bundle
- rm db/*.db
- bundle exec rake db:migrate
- bundle exec puma
- surf to the URL http://localhost:9234/admin/new
- give email, name and password with digits and lower case and upper case (TODO: error handling currently not ideal)
- bundle exec sequel sqlite://db/development.db (TODO: only now, should not be needed any more when finished, email not configured) 10a > require './models/admin.rb' 10b > Admin.last.login_path
- prepend the output path with http://localhost:9234 in the browser
- login with the password that you defined in step #9
(ctrl-c to stop it)
- like above up to 4. (bundle)
- RACK_ENV=test bundle exec rake db:migrate (or: (export RACK_ENV=test ; bundle exec rake db:migrate) )
- bundle exec rake