A sample site that shows the capabilities of Ribbon's API
To run the application:
- Clone the repository
- Navigate to the directory where it is stored "cd ribbon-api-sample"
- Make an account on https://www.ribbon.co and create an application (Settings->Developer->Register a new application)
- Put "http://localhost:4567" for the main application URL and "http://localhost:4567/auth/callback" for the callback URL. Name it whatever you like.
- Take the Consumer Key and Consumer Secret and place them into the variables at the top of app.rb
- Install the gems listed in the Gemfile with a "bundle install" (if you don't have bundler install it here: http://gembundler.com/)
- Install the sinatra contrib gem with a "gem install sinatra-contrib"
- Run "ruby app.rb" in your terminal
- Navigate to http://localhost:4567/ in your browser.
- Try adding and deleting some products
- Enjoy!