Coder Social home page Coder Social logo

digideskio / search-api-rails-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from psychodramatic/search-api-rails-demo

0.0 0.0 0.0 702 KB

Rails example using Gnip's Search API

License: MIT License

Ruby 39.53% CoffeeScript 15.53% JavaScript 16.20% CSS 23.58% HTML 4.93% Gherkin 0.23%

search-api-rails-demo's Introduction

Overview

Code Climate GPA Travis CI Status

Gnip Search Demo

Gnip has built this internal app on top of its Search API product for demo purposes, in order to visually highlight the product's functionality and the type of interface that Gnip customers could build into their products to leverage the Search API for internal use or exposure to their clients. This is not an official, supported application. Please do not contact support with any requests regarding this project.

Features

  • Single, one-page Search UI.
  • CoffeeScript and SASS source map debugging support.

Requirements

  1. Ruby 2.0.x.
  2. Ruby on Rails 4.0.x.
  3. All major browsers + Internet Explorer 9+. Don't even try IE8, seriously, it's not pretty.
  4. You may need Python on your PATH to install some dependencies

Setup

Open a terminal window and execute the following commands:

Current Version (stable)

git clone git://github.com/gnip/search-api-rails-demo.git
cd search-api-rails-demo
git checkout v1.0.0

Master Version (unstable)

git clone git://github.com/gnip/search-api-rails-demo.git
cd search-api-rails-demo

Ensure the following environment variables are set:

  • GNIP_ACCOUNT = Your Gnip account.
  • GNIP_STREAM_NAME = Your Gnip stream name.
  • GNIP_USERNAME = Your Gnip username.
  • GNIP_PASSWORD = Your Gnip password.
  • MAPBOX_API_KEY = Apply your API key within main.coffee. If you need a key, you can get one at mapbox.com.

Usage

To run, execute bundle install and then rails s.

Testing

To test, do the following:

  1. Tests: rake spec
  2. Features: rake cucumber
  3. Jasmine Tests: rake spec:javascript

NOTE: Guard will automatically run Cucumber, RSpec, and CoffeeScript (sorry, no auto-jasmine yet).

Versioning

Read Semantic Versioning for details. Briefly, it means:

  • Patch (x.y.Z) - Incremented for small, backwards compatible bug fixes.
  • Minor (x.Y.z) - Incremented for new, backwards compatible public API enhancements and/or bug fixes.
  • Major (X.y.z) - Incremented for any backwards incompatible public API changes.

Contributions

Read CONTRIBUTING for details.

Credits

License

Copyright (c) 2013 Gnip. Read the LICENSE for details.

History

Read the CHANGELOG for details.

search-api-rails-demo's People

Contributors

eriwen 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.