GithubHelp home page GithubHelp logo

codeforgermany / click_that_hood Goto Github PK

View Code? Open in Web Editor NEW
443.0 47.0 635.0 139.68 MB

A game where users must identify a city's neighborhoods as fast as possible

Home Page: http://click-that-hood.com

License: MIT License

JavaScript 86.66% HTML 3.60% Less 9.74%

click_that_hood's Introduction

Click That 'Hood

logo

Give it a go

Clone this repository onto your local development machine:

  • git clone https://github.com/codeforgermany/click_that_hood.git
  • cd click_that_hood

Install dependencies:

  • npm i

Build the data.js file:

  • npm run build

The resulting site is entirely static and can be served with any HTTP server you like. The server that is built into Python is a good way to get started.

  • cd public
  • python -m http.server 8020

Open it in a browser: http://localhost:8020

Traditionally the demo server has run on port 8020, but you can use any port you want. You may need to use 'python3' instead of 'python', depending on your local setup.

Development

Before you commit code, run:

  • npm run format

If you commit data, format it with:

  • NODE_OPTIONS=--max_old_space_size=8192 npx prettier --write public/data/{file}.geojson

click_that_hood's People

Contributors

ale-salmo avatar brendanbabb avatar bschoenfeld avatar ckutlu avatar cushen avatar daguar avatar epaulson avatar fnogatz avatar galvanthony avatar geoschnitz avatar huttarl avatar ilariotito avatar jalbertbowden avatar jhkennedy4 avatar joegermuska avatar k-nut avatar lizadams avatar mmassie avatar monfresh avatar mwichary avatar ondrae avatar pzula avatar ralfharing avatar rjulian avatar ryanvgates avatar specious avatar tkpwaeub avatar ycombinator avatar yesezra avatar zhch333 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  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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

click_that_hood's Issues

"Lowest Time" Leaderboard for Each City?

Could be a fun little feature. 😺

Basic contours in my mind:

  1. Leaderboard is shown at the end of (either) game
  2. Specific to each city
  3. Shows both of the two leaderboards (Basic and Difficult modes) after either difficulty-level game (to encourage those playing Basic to try Difficult)
  4. Also accessible via "View Leaderboard" button from the city-specific start page and a static URI
  5. The Leaderboard shows: name, (optional) Twitter handle, time

Create validator for metadata file

Should validate that:

  • Name of geojson file is lowercase
  • Data URL should be fully-qualified, with protocol, etc.
    • Make sure data URL resolves
  • Author name resolves to valid twitter ID

Optimize shapefiles.

Some of the shapefiles (e.g. Baltimore, Chicago) seem unnecessary complicated and take too long to load.

Redesign for touch devices.

Positioning of tooltips, tooltips that appear as you “hover” (drag) your finder, adjustments for touch targets…

…but probably requires a complete re-thinking of the game for both tablets and smartphones.

Document process for adding cities

I have a neighborhoods shapefile for Macon, Georgia. It was FOIA-d from the police department by the local newspaper, the Telegraph.

I'll convert it to GeoJSON and try it out on my laptop, but in the meantime: it'd be great if you had a documented process for uploads.

Error: Cannot find module 'express'

One of the most recent commits (since last night) seems to have created an error for me. Will be investigating more later today, but here's what happens as of this commit:
87772b7

After cloning the repo, I did npm install and then:

➜ click_that_hood git:(master) ✗ node app.js

module.js:340
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/Users/daguar/Documents/Code/cfa/cth-temp/click_that_hood/app.js:1:77)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)

neighborhoods too zoomed out

Is there a way to set the zoom level to just the neighborhoods that are used in the game? Or add the zoom tool back?
Screen Shot 2013-02-10 at 8 37 59 PM

Add social sharing buttons

“like social media sharing buttons for twitter/fb - so you can share the came &/or your time/score.”

Create validator for geojson file

  • Make sure neighborhood names are title case
  • Make sure neighborhood names are not empty
  • Make sure neighborhood names are not repeated

Visiting click-that-hood.com throws a strong warning regarding an invalid SSL certificate

When you visit https://click-that-hood.com:

You attempted to reach click-that-hood.com, but instead you actually reached a server identifying itself as *.heroku.com. This may be caused by a misconfiguration on the server or by something more serious. An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of click-that-hood.com. You should not proceed, especially if you have never seen this warning before for this site.

We don’t really advertise HTTPS, but some people somehow use it anyway.

Clear Completed Map after Playing on Hard

After playing a round on hard, selecting a new game of 20 neighborhoods shows the completely filled out green map instead of the proper map for the game. Refreshing fixes the problem. It's a pain to replicate as you need to play a whole game on hard, but I tested it when I added Rochester, and on Portland.

Also, perhaps a "Give Up" button that shows the neighborhoods on the map (which would be handy for testing bugs like this) could be added.

Cross Browser (IE) support

Hey. Great application!

It does not work in Internet Explorer (IE) 9 or less. Which is fine, but it just breaks. It's not graceful about it. It would be awesome if it had a message that suggested the user upgrades or installs a new browser.

Maybe link to:
http://browsehappy.com/

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.