Giter VIP home page Giter VIP logo

shortweet's Introduction

Shortweet Rails App

I decided to challenge myself to make a simple application that shortens a URL you post to it and also allow for the ability to send it to Twitter. I know there are plenty of services out there that already offer this such as bit.ly, but a challenge is a challenge. So was born Shortweet. Since it’s just a challenge project, it comes as is.

Setup

After cloning/downloading:

  • in config, rename example.database.yml to database.yml and change to your settings for your database
  • in config/environments, rename example.development.rb to development.rb
  • rake db:create; rake db:migrate;

Accessing twitter

In the development.rb environment file, you will need to place in your Twitter keys that they gave to you. To obtain these keys, you will need to sign up for them:

http://twitter.com/oauth_clients/new

Note: Currently, twitter does not allow for callbacks to localhost:port for development testing. If you are planning on developing on your localhost, you must change your /etc/hosts file to fake a DNS for twitter to call back to.

When filling out the callback field for twitter application, make sure the url ends with:

  /callback

This will make sure that twitter sends back to the correct action for the verification process to store the user’s token and secret.

Restful Authentication Plugin

Clone to the vendor/plugins folder

  git clone git://github.com/technoweenie/restful-authentication.git /vendor/plugins/restful_authentication

shortweet's People

Stargazers

Angus H. avatar Voila avatar Eric M avatar Chris Sloan avatar

Watchers

Chris Sloan avatar James Cloos avatar Voila avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.