Tuesday, January 19, 2010

Deploying TwitteyBot on your instance on Google App Engine

If you would like to deploy your own instance of twitteybot on Google App Engine, here are the steps for you. The process is not wholly automatic, and I am looking at way in which I can automating deployments to Google App Engine, and then, configure them. Till then, here are the steps.
or the deployment, would need

    1. Compiling the source
      1. Sync the source code using an SVN client from here.
      2. Open build.properties.template and change sdk.dir to point to your location of java app engine directory
      3. Run ant clean enhance compile. This should create a svn_root/trunk/war directory.
    2. Google AppEngine account
      1. Create a new app engine application. 
      2. Run /bin/dev_appserver.cmd update war to update the source on app engine.
    3. Twitter OAuth credentials
      1. Head to http://twitter.com/oauth and create a new application
      2. Set the following properties
        1. Application Type : Browser
        2. Call Back URL :[ yourapplication].appspot.com/pages/manageTwitterAccount?action=oauth
        3. Default Access Type : Read and Write
        4. Use Twitter for Login : No
      3. On saving this, you would get a consumer key and a consumer secret.
    4. Open the browser and visit the following URLs to set the consumer secret and consumer key.
      1. http://[yourapplication].appspot.com/admin?action=add&key=consumer_key&value=[consumer_key]
      2. http://[yourapplication].appspot.com/admin?action=add&key=consumer_secret&value=[consumer_value]
    5. Your application has been successfully set up.
    You can hit the home page of the application and start managing twitter accounts.
    Note: The database indexes may not be built immediately on the App Engine instance. You may have to wait a while before the indexes are built.

    4 comments:

    1. Hi guys,
      Thanks for the great app you have put up.

      I would like to let you know that since February 24th our setup lists stopped to upload on twitter.

      Our profile if DolceFugo.

      Can you please help with this issue?

      Regards,
      Giovanni
      info@DolceFugo.com
      ReplyDelete
    2. Hi,
      Thanks for this app.
      When I try to add a twitter account, I have that : "twitter4j.TwitterException: 401:Authentication credentials were missing or incorrect. "

      Any idea ?

      Regards
      Stephane
      ReplyDelete
    3. Parashuram, I don't understand in number 1 under ant clean enhance compile.

      Could you explain more. Thanks in advance
      ReplyDelete
    4. @Anonymous, please ping me on http://nparashuram.com/contact.html and I could help you with details.
      ReplyDelete