Skip to content

Instantly share code, notes, and snippets.

@rakuishi
Last active March 23, 2016 08:26
Show Gist options
  • Save rakuishi/a3d6d392f66220117eed to your computer and use it in GitHub Desktop.
Save rakuishi/a3d6d392f66220117eed to your computer and use it in GitHub Desktop.
Rails Command
./bin/rails s
./bin/bundle install --path vendor/bundle
./bin/bundle exec rails g rspec:install
./bin/bundle exec rspec
./bin/rails runner -e development SampleWorker.task
curl -H "X-Access-Token: eyJ..." http://localhost:3000/api/v1/goods
curl -H "X-Access-Token: eyJ..." -X POST -d "" http://localhost:3000/api/v1/goods/1
curl -H "X-Access-Token: eyJ..." -X POST -d count=1207 http://localhost:3000/api/v1/goods/1
curl -H "X-A-Access-Token: eyJ..." -X DELETE http://localhost:3000/api/v1/goods/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment