Giter Site home page Giter Site logo

jorgegarciaxyz / spree_locations_near_you Goto Github PK

View Code? Open in Web Editor NEW

This project forked from railsdog/spree_locations_near_you

0.0 1.0 0.0 130 KB

Spree extension to provide a list of retail locations near a users' provided postal code

License: BSD 3-Clause "New" or "Revised" License

Ruby 16.64% JavaScript 74.04% CSS 0.35% HTML 8.97%

spree_locations_near_you's Introduction

SpreeLocationsNearYou

Circle CI Code Climate

spree_locations_near_you

Spree extension to provide a list of retail locations near a users' provided postal code

What this gem does

  • Target Spree 2.4 in the first release
  • Provide a means of geocoding any given ActiveRecord model based on address
  • Supports a single geocoding provider
  • Provides a facility for looking up a user-submitted location identifier (presumably a postal code) and returning a ActiveRecord result set of locations sorted by ascending distance from the supplied starting point
  • Delegates to the alexreisner/geocoder where possible to simplify (lat,lng) lookups
  • Targets PostgreSQL exclusively using the earthdistance addon.
  • Provides a vendored copy of the jQuery Store Locator Plugin for optional frontend mapping needs
  • Uses the acts_as_list gem's DSL as a guideline for inclusion with a Spree model specified by the gem user

What this gem does not do

  • Provide its own location / store AR model
  • Support all versions of Spree

Installation

Add spree_locations_near_you to your Gemfile:

gem 'spree_locations_near_you'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_locations_near_you:install

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_locations_near_you/factories'

Copyright (c) 2015 [name of extension creator], released under the New BSD License

52a513fa8d985d1757a1f1f982efafc09c83e49b

spree_locations_near_you's People

Contributors

karmahater avatar acreilly avatar dpritchett avatar

Watchers

Jorge Garcia 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.