GithubHelp home page GithubHelp logo

tmcw / coffeedex Goto Github PK

View Code? Open in Web Editor NEW
27.0 6.0 6.0 1.07 MB

openstreetmap but for coffee

Home Page: http://www.macwright.org/coffeedex/

License: ISC License

CSS 4.06% JavaScript 91.85% HTML 4.08%

coffeedex's Introduction

COFFEE DEX

A collaborative solution to the problem of

How much does a cup of coffee for here cost, everywhere?

The code structure is simple: all JavaScript is in index.js.

Development

This project uses browserify to compile the source code in index.js into the bundle of JavaScript in bundle.js that your browser interprets. You'll need node.js to install the dependencies of this project and develop on it.

  • npm install: install dependencies
  • npm start: start the development server that compiles your JavaScript and serves the site at http://localhost:3000/
  • npm run build: build a production-ready bundle.js that you can commit and use on the public website.

See Also

coffeedex's People

Contributors

gitter-badger avatar jwass avatar tmcw avatar waldyrious avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

coffeedex's Issues

Select shops from the map

Right now the map is only for display, not selection. Should do both, or have two maps with one for selection.

COFEEDX is not loading

After the OSM login the application just stops at the loading screen:
Tested on Safari 8.0 and Chrome 39.0.2171.71 (64-bit)
screen shot 2014-11-30 at 19 23 57

switch to xapi

this'll let us load moar coffeeshops further out and filter and whatever as long as i can parse the documentation

Spinoff: wifidex

This is basically a zany mixture of coffeedex with @maxogden's ssid-checkin.

UX:

You install the thing as a mac osx app (atom-editor wrapper or similar), it gives you the same 'optionally check in when you connect to an ssid you know aligns with a foursquare venue' functionality of ssid-checkin.

Differences being:

  • the data is in openstreetmap
  • optionally: the app tries to give you more value than a checkin: closing times, tips, something else

The boring pedantics:

Cool thing about where this app would live is that it would make contributing these two tags dead-simple.

Tagging pedantics

  • cost:coffee or price:coffee

We're using the former. I think either is fine.

  • $10 or USD 10, 10 GBP or £1.40

So far I'm encoding $10. I think I need to change this and the interface needs to autodetect & wrap, since $ is ambiguous.

Have talked with @daguar about a PBR variation: does this form imply 'cheapest' or 'usual'?

For instance,

cost:gasoline
cost:beer
cost:milk

/cc @aaronlidman @ajashton

Can't authenticate OSM

Clicking the Login button on coffeedex gives this error in the console, and nothing happens:

 XMLHttpRequest cannot load http://www.openstreetmap.org/oauth/request_token. The request was redirected to 'https://www.openstreetmap.org/oauth/request_token', which is disallowed for cross-origin requests that require preflight.

on Chrome 39.0.2171.71 (64-bit). Similar behavior on Chrome on iOS 8.1.1. Safari has issues too, guessing same thing..?

Better empty state

/cc @amyleew

This site wants to be self-explanatory to the max, and isn't yet.

2014-12-01 at 12 04 pm

This empty state needs to be improved: it reads like coffee is free, not like nobody has added a price

  • Input blank, or maybe a placeholder (lower-opacity) value?
  • Text saying something like "Nobody has added a price to this shop yet. You should!"

2014-12-01 at 12 05 pm

This list could use a header like 'coffee shops within 20 miles of you. the ones with pencils are editable, you can add their prices!'

Support restaurants?

I'm conflicted about this, because American restaurants tend to offer free refills on coffee, which makes the pricing really not the same.

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.