Posts tagged API

Dec 01 2011

Testing a REST Web Service with Cucumber

TDD Github API | comments

The Cucumber book has been helpful in a way that I saw more options for testing a web service. It's my first time to use HTTParty. In the past, I always used RESTClient gem for this kind of task.

Just think the example is overkill. Maybe we just want to know whether the JSON response includes the data we expect.

Continue reading »
Sep 30 2010
Nov 08 2009

Capistrano Task For Loading Production Data Into Your Development Database

Capistrano Drupal Sinatra Ruby | comments

Great Sunday. I just finished backing up data of two of my sites. This blog site of mine is using Sinatra DSL which is an alternative to Ruby on Rails framework. Another site of mine runs in Drupal 6. I was able to successfully local production database for both without using PHPMYADMIN. It's all done via command line. For me, it was a time-saver.

Continue reading »
Oct 17 2009

Deploying A Drupal Site With Git and Capistrano

Drupal Git Capistrano SCM | comments

This is my first attempt to write a definitive guide on how to set up Drupal and how to deploy a Drupal site using Git and Capistrano.

Why bother using Git and Capistrano when you can just upload via FTP? Isn't it needless effort if you're a lone developer and you have good retention of the things you have done?

Continue reading »