No description
  • Ruby 91%
  • Shell 9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2012-05-15 02:11:56 -07:00
app Augment app with groups 2012-05-15 02:11:56 -07:00
config Initial app version; simple user account store 2012-05-15 02:10:17 -07:00
db/migrate Augment app with groups 2012-05-15 02:11:56 -07:00
models Augment app with groups 2012-05-15 02:11:56 -07:00
spec Augment app with groups 2012-05-15 02:11:56 -07:00
vendor/cache Initial app version; simple user account store 2012-05-15 02:10:17 -07:00
.components Initial app version; simple user account store 2012-05-15 02:10:17 -07:00
.gitignore Initial app version; simple user account store 2012-05-15 02:10:17 -07:00
.rspec Initial app version; simple user account store 2012-05-15 02:10:17 -07:00
config.ru Initial app version; simple user account store 2012-05-15 02:10:17 -07:00
curl_test_commands.sh Augment app with groups 2012-05-15 02:11:56 -07:00
Gemfile Initial app version; simple user account store 2012-05-15 02:10:17 -07:00
Gemfile.lock Initial app version; simple user account store 2012-05-15 02:10:17 -07:00
README.md Initial app version; simple user account store 2012-05-15 02:10:17 -07:00

chefconf-workshop-dev-app

This is a simple REST server for use in Opscode's Developer Training classes.

Install

bundle install --binstubs
# kick bundle exec to the curb
export PATH=.:$PATH
cp config/database.rb.example config/database.rb

Run Tests:

padrino rake sq:migrate:up -e test
padrino rake spec

Run the App

padrino start

Example CURL Interactions

./curl_test_commands.sh http://localhost:3000

Be sure to use an appropriate server address (if testing locally, the port Padrino uses may be different; if testing the app on a VM, use the appropriate host).